최근 검색


최근 검색 없음

Unable to get value from custom fields through ZAF client

답변함


2022년 8월 15일에 게시됨

I am trying to get documentCaptureURL which is a custom field (78069627) declared in our app, even though the custom field carries the value which shows in the zendesk UI (left hand side panel), but below json doesn't show the value when I try to get using zendesk api as below
zatClient.get('ticketFields:custom_field_78069627')

"ticketFields:custom_field_78069627": {
"hasOptions": false,
"isRequired": false,
"isVisible": true,
"label": "Document Capture URL",
"name": "custom_field_78069627",
"type": "text",
"isEnabled": true,
"requiredOnStatuses": []
}


0

3

댓글 3개

Thanks

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Diego, 

You should have access to all of the fields available on the form whethere you're hiding them or not. Just to clarify, is this field purposely being hidden from the agent UI? Is it part of the form you're working with? If you do client.get('ticketFields') to list all of fields of the ticket's form you're working on, do you see it there? 

0


Hi Eric, 

The custom field I'm trying to update is not actually added to any form so I'm not seeing it when using client.get("ticketFields").

I'm able to access the field now and as you can see on the screenshot, I can get it as null first, then set the new value and then when get the value again, I'm seeing it added.

But it's not getting saved when the ticket is submitted and maybe this is because the customField is not added to any form currently

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물