with Microsoft Dynamics 365 Sales and Riku.AI?
Create a custom entity. See the documentation
Search for a contact by id, name, or using a custom filter. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_dynamics_365_sales: {
type: "app",
app: "microsoft_dynamics_365_sales",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.microsoft_dynamics_365_sales.$auth.api_url}/api/data/v9.2/WhoAmI`,
headers: {
Authorization: `Bearer ${this.microsoft_dynamics_365_sales.$auth.oauth_access_token}`,
"odata-maxversion": `4.0`,
"odata-version": `4.0`,
"content-type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
riku_ai: {
type: "app",
app: "riku_ai",
}
},
async run({steps, $}) {
const data = {
"Name": `YOUR NAME`,
"Secret": `${this.riku_ai.$auth.secret_key}`,
"Prompt ID": `YOUR PROMPT`,
"Input 1": `SaaS`,
"n": `1`,
}
return await axios($, {
method: "post",
url: `https://prompts.riku.ai/webhook/run`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})