Hi,
We want to update our all marketo forms at once. We have come across this article about making this update in bulk via the API. For that we are using the Postman API platform. We connected Postman and our marketo instance, but the form is not getting updated. Please anybody who knows the process or step-by-step process please help us.
Solved! Go to Solution.
Cool- you can use the values parameter and pass the array of JSON objects that contain field attributes. This would of course only work for the Select type fields. Make sure you pass the Content as application/x-www-form-urlencoded
values=[{"label":"Select...","value":"","isDefault":true,"selected":true}, {"label":"MR","value":"MR"}, {"label":"MS","value":"MS"}, {"label":"MRS","value":"MRS"}, {"label":"DR","value":"DR"}, {"label":"PROF","value":"PROF"}]
Make sure to get the field's id by this GET fields endpoint, and use this id as the path parameter in your original update fields endpoint. Please share your complete request format along with the error message you're seeing in the response if you're not able to update the field.
Using create/update form endpoints you can modify the form meta-data only. To modify the form fields, you should use the Form Fields endpoints. You can automate form updates in mass by writing a script that successively calls this endpoint for each form to make the corresponding form updates. Additionally, to make API requests to Marketo, you'd need an access_token, which you'd have to generate via the identity endpoint. The complete guide on generating the access_token using the identity endpoint and using it in the API calls is documented here. Also, it'd help if you could share more details on any specific errors/issues you're facing along with the endpoint/parameters/payload (if applicable)/response, etc. so we can provide more to-the-point assistance in troubleshooting the issue.
We are trying to use Form-Fields endpoint : "/rest/asset/v1/form/{id}/field/{fieldId}.json".
We want to update the values list for a form field. This is a Country field and we want to add a new and update few country to the list.
Cool- you can use the values parameter and pass the array of JSON objects that contain field attributes. This would of course only work for the Select type fields. Make sure you pass the Content as application/x-www-form-urlencoded
values=[{"label":"Select...","value":"","isDefault":true,"selected":true}, {"label":"MR","value":"MR"}, {"label":"MS","value":"MS"}, {"label":"MRS","value":"MRS"}, {"label":"DR","value":"DR"}, {"label":"PROF","value":"PROF"}]
Make sure to get the field's id by this GET fields endpoint, and use this id as the path parameter in your original update fields endpoint. Please share your complete request format along with the error message you're seeing in the response if you're not able to update the field.
Thanks, Darshil. Form fields are getting updated. Also wanted to know if can we update the visibility rules values of the form through API. Because most of the forms have a visibility rule applied.
Cool! You're welcome. Glad to be of help. You can update the visibility rule for a field on form using the visibility rules POST endpoint.
@Darshil_Shah1 I have a lame question 🙂 , it it safe to use postman free version to make direct calls to out Marketo instance in respect to data confidentiality. we need to perform bulk extract is it okay to keep secret token and key in postman app ?
Kind of impossible to answer from outside. Anybody who can log in to your machine can read the credentials — does that comply with your company's security policy?
@SanfordWhiteman Thank you for prompt response, Well yeah machines have restricted access so only authorized person would have access to specific machine, to be more precise I was wondering if data from postman itself is encrypted not at interface or machine level but at backend. hope it makes sense