API References
...
Salesforce Sync
Create Fields Sync Job
1 min
code examples curl location 'https //api nue io/orders/fields sync jobs' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{"body" {"parameters" {"objectapiname" "string\<abstractasset | order | orderproduct | asset | assetorderproduct | contact | customer | subscription | userprofile | company | relatedcustomer | billingschedule | billingjob | invoice | invoiceitem | invoiceitemdetail | creditmemo | creditmemoitem | creditmemoitemdetail | usage | paymentapplication | paymentapplicationitem | credittype | creditpool | accountcreditpool | credit | creditflow | debitmemo | debitmemoitem | billingstate | billingasset | paymentrule | paymentmethod | entitlement | entity | linepricedimension | pricedimension | featurepricedimension | pricebook | pricetier | productoptionpricedimension | productpricedimension | uom | feature | bundlesuite | pricebookentry | product | productoption | productfeature | bundlesuitebundle | creditconversion | productoptionrelation | changehistory | sssubscription | ssasset | ssentitlement | formtemplate | quote | opportunity | contract | account | pricebook2 | user>","fieldapinames" \[]}}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "parameters" { "objectapiname" "string\<abstractasset | order | orderproduct | asset | assetorderproduct | contact | customer | subscription | userprofile | company | relatedcustomer | billingschedule | billingjob | invoice | invoiceitem | invoiceitemdetail | creditmemo | creditmemoitem | creditmemoitemdetail | usage | paymentapplication | paymentapplicationitem | credittype | creditpool | accountcreditpool | credit | creditflow | debitmemo | debitmemoitem | billingstate | billingasset | paymentrule | paymentmethod | entitlement | entity | linepricedimension | pricedimension | featurepricedimension | pricebook | pricetier | productoptionpricedimension | productpricedimension | uom | feature | bundlesuite | pricebookentry | product | productoption | productfeature | bundlesuitebundle | creditconversion | productoptionrelation | changehistory | sssubscription | ssasset | ssentitlement | formtemplate | quote | opportunity | contract | account | pricebook2 | user>", "fieldapinames" \[] } } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api nue io/orders/fields sync jobs", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api nue io/orders/fields sync jobs") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "body" { "parameters" { "objectapiname" "string\<abstractasset | order | orderproduct | asset | assetorderproduct | contact | customer | subscription | userprofile | company | relatedcustomer | billingschedule | billingjob | invoice | invoiceitem | invoiceitemdetail | creditmemo | creditmemoitem | creditmemoitemdetail | usage | paymentapplication | paymentapplicationitem | credittype | creditpool | accountcreditpool | credit | creditflow | debitmemo | debitmemoitem | billingstate | billingasset | paymentrule | paymentmethod | entitlement | entity | linepricedimension | pricedimension | featurepricedimension | pricebook | pricetier | productoptionpricedimension | productpricedimension | uom | feature | bundlesuite | pricebookentry | product | productoption | productfeature | bundlesuitebundle | creditconversion | productoptionrelation | changehistory | sssubscription | ssasset | ssentitlement | formtemplate | quote | opportunity | contract | account | pricebook2 | user>", "fieldapinames" \[] } } }) response = https request(request) puts response read body import requests import json url = "https //api nue io/orders/fields sync jobs" payload = json dumps({ "body" { "parameters" { "objectapiname" "string\<abstractasset | order | orderproduct | asset | assetorderproduct | contact | customer | subscription | userprofile | company | relatedcustomer | billingschedule | billingjob | invoice | invoiceitem | invoiceitemdetail | creditmemo | creditmemoitem | creditmemoitemdetail | usage | paymentapplication | paymentapplicationitem | credittype | creditpool | accountcreditpool | credit | creditflow | debitmemo | debitmemoitem | billingstate | billingasset | paymentrule | paymentmethod | entitlement | entity | linepricedimension | pricedimension | featurepricedimension | pricebook | pricetier | productoptionpricedimension | productpricedimension | uom | feature | bundlesuite | pricebookentry | product | productoption | productfeature | bundlesuitebundle | creditconversion | productoptionrelation | changehistory | sssubscription | ssasset | ssentitlement | formtemplate | quote | opportunity | contract | account | pricebook2 | user>", "fieldapinames" \[] } } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // created // bad request { "title" "", "message" "", "errorcode" "" }// not found