You need to sign in to do that
Don't have an account?
Marcelo Velame 1
Field update in custom object to a field in a REST POST API
I have a scenario that when the picklist type field value is updated, the field is also updated in an integration of external REST API services (endpoint: https://api.boxlink.com.br/v2/tracking ).
The cloud I'm working on is Sales Cloud and the integration via an App connected with Boxlink is already done.
OBJECT:
Label: Seller Request
API name: SellerOrder__c
FIELD:
Label: Status OMS
API name: StatusOMS__c
Picklist list value:
Endpoint: https://api.boxlink.com.br/v2/tracking
What is the best way to update the field? Could you help?
The cloud I'm working on is Sales Cloud and the integration via an App connected with Boxlink is already done.
OBJECT:
Label: Seller Request
API name: SellerOrder__c
FIELD:
Label: Status OMS
API name: StatusOMS__c
Picklist list value:
- Order Approved
- invoiced order
- order error
- dispatched order
- Order resent
- Order Ready to Pick Up
- Order Delivered
- Request declined
- Order Withdrawn
- canceled order
- Order Returned
- Order in Transit
Endpoint: https://api.boxlink.com.br/v2/tracking
What is the best way to update the field? Could you help?
Check below examples to create or update record using REST API.
https://salesforce.stackexchange.com/questions/217545/custom-field-update-api
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_update_fields.htm
https://developer.salesforce.com/docs/atlas.en-us.caf_dev_guide.meta/caf_dev_guide/caf_dev_examples_api_rest.htm
Please mark as Best Answer if above information was helpful.
Thanks,