In the below example, whenever Service Contract record is created or updated, it gets the Asset(Custom field) from the Service Contract and updates it’s status to Purchased.
Flow:

Subscribe Topic Configuration:
Logger Configuration:
Set Variable Configuration:
Transform Message Configuration:

Salesforce Update Configuration:
Output: