Trying to use mobile push notifications

Certified Associate Developer

Hi Appian Community,

I am trying to use https://docs.appian.com/suite/help/20.3/Send_Push_Notification_Smart_Service.html in a process model.

 I have hard coded my name to be sent to myself but it is still not working.

 here is my error 

here is my code for the push notification's

recipients: "Kevin Riley" -- pulled from the system via a search and selection

title: ="Case "&pv!case.id&" Updated to "&pv!case.status&" by "&pp!initiator

body:="Hi "&pv!case.createdBy&",Description:"&pv!case.description -- in the future according to the documentation listed above it will shorten the fields to the necessary size correct?

link ='urlforrecord(cons!SD_CASES_RT, pv!case.id)'

Any advice will be appreciated. 

thanks,

Kevin 

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    Are you searching user name from cdt ? Make sure if you are creating new users. they will have a username in appian cloud. Afterthat you can make a rule for find username in a group which you are ctreating for them. I used the push notification smart service. I'm share the code with you 

    using interface :

    {
      a!buttonArrayLayout(
        buttons: {
          a!buttonWidget(
            label: "Send Push Notification",
            saveInto: {          
              a!sendPushNotification(
                recipients: cons!KBS_USER_KAVITA,
                title: "New Inspection",
                body: "Perform Inspection of your profile",
                link: a!recordLink(
                  recordType:'recordType!{41548330-eda0-4a13-b58a-ab4dd066aeab}VPA Customer',
                  identifier: "4"
                )
              )
            },
            style: "NORMAL"
          )
        },
        align: "START"
      )
    }

    Process model: I applied the same values within process model

    Link:  Send_Push_Notification_Smart_Service