Skip to main content

Hi,

In playing around with app requests, I have noticed that it’s possible to map JSON output to dynamic fields, which can in turn update a custom field on the conversation using a rule. However, this seems to only work for a single property. My question is about updating multiple custom fields on the conversation. Is it possible to update multiple custom fields in response to a single application request, without triggering duplicate app requests for each dynamic field? Or is the best approach for this use case to have my backend update the custom fields directly via an API call?

For example, I would like to ping my backend with a single request to get the user’s current subscription plan and their renewal date, and update two custom fields (plan and renewal date) on the conversation without triggering a separate application request for each field. The alternative is to ping my backend once with a custom request and have the backend itself update the custom fields by hitting Front’s API, so that only one application request is needed.

What is the best way to update multiple custom fields from a single application request?

Hi there!

You’re correct, application requests can only update one custom field per dynamic variable, so the rule approach with app requests isn’t ideal.

Rather than using the API, you could still get a rule-based approach by using app objects instead, which gives you access to more structured external data:

https://help.front.com/en/articles/2002#overview

Once you have the app object, you can create a rule with dynamic variables like this:
 


I hope that helps!