![](https://uploads-us-west-2.insided.com/freshworks-en/attachment/3767003b-f9ca-4221-b38b-dde5a22b3d08.png)
Good Day! Hi, i just want to ask if how can we set value of dependent field in custom fields via JSON Format.
“custom_fields”: {
“cf_cm_territory”: “{{tickets.cf_cm_territory}}”
}
how do i declare the cf_cm field?
Good Day! Hi, i just want to ask if how can we set value of dependent field in custom fields via JSON Format.
“custom_fields”: {
“cf_cm_territory”: “{{tickets.cf_cm_territory}}”
}
how do i declare the cf_cm field?
The request is absolutely poorly described and it is unclear what needs to be done. There is some screenshot from nowhere and it is unclear what fields there are.
that's why there's silence in this thread..
Good Day! Hi, i just want to ask if how can we set value of dependent field in custom fields via JSON Format.
“custom_fields”: {
“cf_cm_territory”: “{{tickets.cf_cm_territory}}”
}
how do i declare the cf_cm field?
What I do is to do a GET to a ticket with the value is set and then just mimic that in the POST/PUT
To set the value of a dependent field in custom fields via JSON format, you need to ensure that you correctly reference the dependent field and its corresponding value. Here's an example of how you can declare and set the value for the cf_cm_territory field:
{
"custom_fields": {
"cf_cm_territory": "YourDesiredValue"
}
}
In this example, replace "YourDesiredValue" with the actual value you want to assign to the cf_cm_territory field. If you want to dynamically assign the value from an existing ticket field, you can use a placeholder like {{tickets.cf_cm_territory}}, provided that the system you're working with supports such placeholders.
Hi
Greetings from Freshworks Community. :)
As per my understanding you have a dependent field in the account and you would like to pass a static value for the same instead of using a dynamic placeholder.
As mentioned by
For example :-
{
"custom_fields": {
"cf_cm_territory": "the value that your expecting to have"
}
}
Let me know if this helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.