Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
Last activity: 26 Aug 2020 8:41 EDT
Pass parameters or Property Values to Page-Set-Messages in an activity.
How to pass values from a clipboard property or a parameter to a message rule in a Page-Set-Messages step?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
@Asif_Hasan, I have found a way to pass property reference or parameter directly to a message rule from an activity.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
This issue is on:
- Pega Platform v7.1.9
- Pega Customer Service for Communication v7.1.4
- Mozilla Firefox Quantum v57.0
- Microsoft Windows 10
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems, Inc.
ES
Hi Suranjith,
Thanks for posting on PSC.
I have reviewed your another post as well, you can't pass the property reference or parameter in message rule.
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
@Asif_Hasan, I have found a way to pass property reference or parameter directly to a message rule from an activity.
-
Karan Gupta Raghavender Reddy Lankapothu Rupesh Patil
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
@AsifHasan, Requirement is to call an API (Connect-Rest) to get some details related to captured data in first assignment, and display those details in second assignment.
If the API call failed, It's required to show page-set-message with the error details received in API response or HTTP status code if API itself failed.
How can i pass the error code details to Message rule in Page-Set-Messages?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems, Inc.
ES
You could try using pxAddMessageToPage function and set the value on failure of invocation of API.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
I'll check...
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems, Inc.
ES
Refer Page no-147 of https://pdn.pega.com/sites/pdn.pega.com/files/Senior_System_Architect_Exercise_Guide_041917.pdf
Hope it helps.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-02/24d079a1-c313-4c42-ab78-31e9cd85fc70.jpeg?h=4a7d1ed4&itok=i5vIS6iX)
Afni
LK
@AsifHasan, Thanks...
-
Toshiro Sasaki