Skip to main content

#I'm using flow to set up a custom notification for an experience site that notifies recipients when they receive a direct message. I want the target page to either /messages/Home or /messages/:recordId. Using Target ID takes me to an invalid page. I've tried a few things for Target Page Reference based on pageReference Type documentation, but I've been unsuccessful. Any ideas? Thanks in advance! 

 

Specifically, I tried the following:

 

{    

      type: "comm__namedPage", 

      attributes: {        

          name: "Messages"    

      }

}

 

{        

      type: "standard__objectPage", 

      attributes: {        

           objectApiName: "DirectMessage",        

           actionName: "home"    

           }

}

 

{        

   type: "standard__objectPage", 

   attributes: {        

         objectApiName: "FeedItem",        

         actionName: "home"    

         }

}

 

{

    type: "standard__recordPage",        

    attributes: {            

       recordId: "recordId",            

       objectApiName: "DirectMessage",            

       actionName: "view"        

       }

 }

 

#Salesforce Developer

1 个回答
  1. 2021年10月28日 13:40

    Hi,

     

    May I suggest visiting our Developer Community for any coding-related questions at developer.salesforce.com/forums. You will get an answer much quicker if you post there. Thank you!

     

    Regards,