function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marcelo Velame 1Marcelo 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:
  • 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?
VinayVinay (Salesforce Developers) 
Hi Marcelo,

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,