Has anyone used Metadata API or Tooling API to bulk update Workflow, Validation Rule etc? I am trying to play with these 2 API using SOAP UI but not sure if that's feasible. Any guidance will be appreciated
Updating Workflow using Tooling API and Metadata API is feasible in following conditions and consideration:-
- Workflow in not time dependent
- If workflow reference a user, it must be present in organisation where the workflow in being updated.
- You have all dependencies existing in system or in deployment payload.
- Tooling API don't have Workflow object, it has its child objects.
Validation rules have no issues either you use tooling api or metadata API.
Which one to use?
Tooling API is easy to build over but lack some operations. Metadata API is time consumng but has all required operations. You may use Tooling and Metadata API together to achieve the functionality.
Please check following Git link,
This repo covers some of the basic metadata API call examples. Please let me know if this doesn't help you.