some hash variables not working as calling api by API Builder

Confluence User - 03 Mar, 2022

SCENE: call api(using postman) which is built by API Builder

in BEAN SHELL Validator:

  1. when I use "#form#" hash variable, I just got a string like "#form.{table_name}.{field}#", not parsed to field value
  2. BUT!!!, when I use "#date.dateFormat#", it worked!


So any suggestion about this condition?

hash-variables;apibuilder;forms

2


03 Mar, 2022
confluenceUser
confluenceUser

If you are using the form hash outside of the runtime Form (meaning there's no "id=b85caeee-e9c3-438b-9a26-d8e642296812" in the URL), you need to add the id or primary key into the form hash to pass to Joget the primary id value, for example: #form.tablename.field[b85caeee-e9c3-438b-9a26-d8e642296812]#.

22 Mar, 2022
confluenceUser
confluenceUser

thanks, that helps

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print