with Autotask PSA and Microsoft Dynamics 365 Sales?
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: {
autotask_psa: {
type: "app",
app: "autotask_psa",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.autotask_psa.$auth.url}V1.0/ClientPortalUsers/query`,
headers: {
"UserName": `${this.autotask_psa.$auth.username}`,
"Secret": `${this.autotask_psa.$auth.password}`,
"ApiIntegrationCode": `${this.autotask_psa.$auth.api_integration_code}`,
},
params: {
search: `{
"filter": [
{
"op": "gt",
"field": "id",
"value": "1"
}
]
}`,
},
})
},
})
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`,
},
})
},
})