with Specific and SAP S/4HANA Cloud?
Modify an existing contact's details or create a new one if the specified contact does not exist. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
specific: {
type: "app",
app: "specific",
}
},
async run({steps, $}) {
const data = {"query": "query { companies { id name } }"}
return await axios($, {
method: "post",
url: `https://public-api.specific.app/graphql`,
headers: {
"Authorization": `${this.specific.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sap_s_4hana_cloud: {
type: "app",
app: "sap_s_4hana_cloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.sap_s_4hana_cloud.$auth.api_url}/sap/opu/odata/sap/API_PLANNED_ORDERS/A_PlannedOrder`,
headers: {
"accept": `application/json`,
"apikey": `${this.sap_s_4hana_cloud.$auth.api_key}`,
},
params: {
"$top": `5`,
"$inlinecount": `allpages`,
"$orderby": `PlannedOrder`,
"$select": `PlannedOrder`,
},
})
},
})