UI Builder data resource binding - not recognized?

Paul Johansson
Tera Contributor

Hi, trying to customize CSM in Workspace and want to change Record Information in the contextual sidebar.

I have tried on the parent page (Record Default) to add a data resource (Look Up Record) but am unable to pass a dynamic Consumer ID.

 

Have tried to use @Data.gform.nowRecordCommonHeader.secondaryItems.0.sysId but doesn't appear to be working, even though with test data loaded there is a response body for @Data.gform.nowRecordCommonHeader on Glide Form data resource.

 

PaulJohansson_0-1690893187724.png

PaulJohansson_1-1690893782278.png

It should be Sam Collins in this case but it's not. If I use any invalid value it seems to default to 

Harding Asher.
1 ACCEPTED SOLUTION

Nootan Bhat
Kilo Sage

Hi @Paul Johansson 

1) Try adding the data fetch succeeded event to GlideForm and refresh the lookup_record_1 using this event.

2) Since secondaryItems is array of objects instead of nowRecordCommonHeader you can use the nowRecordCommonUiactionbar.field.FIELD_NAME.value or else use the nowRecordFormBlob output.

Please do validate which object has the required field values for you. Try to avoid using the arrays object output. Use arrays if you are using the repeater component.

let me know if it helped.

 

Thanks

Nootan

View solution in original post

2 REPLIES 2

Nootan Bhat
Kilo Sage

Hi @Paul Johansson 

1) Try adding the data fetch succeeded event to GlideForm and refresh the lookup_record_1 using this event.

2) Since secondaryItems is array of objects instead of nowRecordCommonHeader you can use the nowRecordCommonUiactionbar.field.FIELD_NAME.value or else use the nowRecordFormBlob output.

Please do validate which object has the required field values for you. Try to avoid using the arrays object output. Use arrays if you are using the repeater component.

let me know if it helped.

 

Thanks

Nootan

Paul Johansson
Tera Contributor

Hello @Nootan Bhat ,

It seems to work! It doesn't show in UI Builder though but if I go to Workspace it does show up.

 

Thank you

Paul