Prompt Share - REST Service to Update Product Quantity On Hand #42
craigathon
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Prompt Asked in Einstein Sidebar
Define an Apex REST class to handle inventory updates from an external system
It should accept a list of object with the following fields
ExternalId
QuantityOnHand
The ExternalId should match on existing Product2 records External_Id__c and update Quantity_On_Hand__c.
If there is no match for a given External Id, this should be logged to a custom Error Log object's Message field
The Result
Thoughts
Beta Was this translation helpful? Give feedback.
All reactions