Now Mobile - How do I display Approve and Reject buttons for Change Request

geraldp1
Tera Contributor

Hello,

I've am trying to display the approval buttons for Change Request items on My Task on Now Mobile, something similar to:
find_real_file.png

What I have done so far:

  1. Applets > My Tasks > Item Stream Segments > My To-dos > Item Stream M2M Segments > Approval To-do

  2. From the Approval To-do Item Stream, I added a new item in Item Stream M2M Item Configurations 

  3. In the Item Configuration:
    • Item view: "My approvals header view - change request" (this is the only OOTB that I can find)
    • Table: sysapproval_approver
    • Condition: Approval For.Task Type -- is -- Change Request
    • Embedded Screen: go to #3 (Form Screen)

  4. Form Screen:
    • Fetch Type: Prefetch
    • Header View: "My approvals item view - change request" (this is the only OOTB that I can find)
    • Tab > Form Screen Segments
      • I just created sample screen segments (see screenshot below)
    • Tab > Function Instances belonging to Screen
      • Function Instance
        • Name/Label: "Approve"
        • Location: Footer
        • Function:
          • Action Item:
            • Type: Update
            • Table: sysapproval_approver
            • Set field values: State -- Approved
          • Condition:
            • Table: sysapproval_approver
            • Condition:
              • Approval For.Task type -- is -- Change Request
              • State -- is -- Requested
          • Action Completion:
            • Jump to previous screen: true
            • Show refresh on previous screen: true

Somehow this does not seem to work. The item is displaying in My Tasks
find_real_file.png

But going to the item details, does not show the buttons for the CHG approval:


find_real_file.png
find_real_file.png


Is this related to the sys_sg_item_view (Item View) being used? What did I miss that it is displaying for HR Case, Request, and Request Items but not for Change Requests?

 
Thanks!

7 REPLIES 7

Hemant Goldar
Mega Sage
Mega Sage

Hello,

 

You can use the footer function to achieve your task

here are some link which will help you to create them

https://developer.servicenow.com/connect.do#!/event/devdays19/NY_MOBILE_LAB_DEMODAYS/lab_NY_MOBILE_L...

https://docs.servicenow.com/bundle/quebec-mobile/page/administer/tablet-mobile-ui/reference/sg-studi...

 

I hope this helps!

 

Mark answer Correct and helpful if this solves your issue.

 

Thanks,

Hemant

Hi Hemant, thank you for your reply! I have been developing with the OOTB Now Mobile application from the platform UI and not Studio, is there a way I can open my applets in Studio? Or maybe a way to import the OOTB Homepage Applet Launcher and applets within it onto Studio as a new application?

Hello,

I hope you have admin access.

now Goto>System Application>Studio

The next step is to select the Application you are working on

find_real_file.png

 

you will be able to configure as per your requirement.

 

Thanks

Hemant

Here is just a showcase. I have built for Work Order task.

 

find_real_file.png

 

Let me know if you need any assistance.

 

Mark answer Correct and helpful if this solves your issue.

 

Thanks,

Hemant