Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Passing sys_id between screens in Mobile App Builder (Need Spare Part → Spare Parts List)

RaoFahadA
Tera Contributor

Hi everyone 👋,

I’m working on a Mobile App Builder use case where a technician opens a record (ticket) and clicks a Need Spare Part button. This button redirects to the SAHL Spare Parts list screen, and I want to pass the current ticket’s sys_id to that screen so I can attach the selected spare parts to the correct parent record later.

Here’s what I’ve done so far:

  • Added a UI parameter named parent_sys_id (carried ).

  • Set the Function table to x_nah_nhc_cfm_nhc_community_facility_management (ticket table).

  • In Redirection destination fields, mapped:

    • Source field → sys_id

    • Destination UI parameter → parent_sys_id

    • Type → Field

  • On the Spare Parts list screen, added a UI parameter also named parent_sys_id with input type = Source field, input source = Auto fill, and carried = .

However, when I open the Need Spare Part function, it redirects correctly, but the parent_sys_id value is not appearing on the next screen (it seems undefined).

Can anyone guide me on:

  1. The correct configuration for passing a sys_id between screens in Mobile App Builder?

  2. Whether the List Screen should use a “Screen Parameter” or “UI Parameter”?

  3. How I can verify or debug that the parameter is being passed properly?

Thanks a lot in advance! 🙏
Fahad

 

0 REPLIES 0