Accessing Parameters in Connect-REST Rule
Until now, all my REST integrations involved passing variable data in the request bodies. Any headers I needed to pass didn't vary. So I used to use Map from = Constant and simply enter value in Map from Key.
Lately, my requirements have changed. I need to be able to pass Parameter Page from my Data Page to my Connect-REST rule and then use those values within the rule. However, I'm unable to figure it out. Syntax Param.MyParamValue doesn't work regardless of whether I use Map From = Constant / Clipboard - and I agree it should not. On the other hand, how do I solve my problem?
Ideally I want to pass a key as parameter to Connect-REST and using that key I could use a Data Page to retrieve whatever variable data I want. I cannot even refer to a Data-Page either on the rule form, but at this time it is less of an issue.
One way I'm thinking is to add properties at the root of my Pega generated API request class. Then I can chose Map From = Clipboard and access as .request.MyHeaderValue. That'll do it. However, I don't think it is portable solution. If I upgrade my connector and Pega regenerates my class I will have to define MyHeaderValue property again.
Someone please give me a better option. At this time, I'm concluding the ability of passing Parameters to Connect-REST rule is useless if I cannot use Param.MyParamValue syntax anywhere within the form. Not that it should matter, but I am using version 8.6 PE.
Until now, all my REST integrations involved passing variable data in the request bodies. Any headers I needed to pass didn't vary. So I used to use Map from = Constant and simply enter value in Map from Key.
Lately, my requirements have changed. I need to be able to pass Parameter Page from my Data Page to my Connect-REST rule and then use those values within the rule. However, I'm unable to figure it out. Syntax Param.MyParamValue doesn't work regardless of whether I use Map From = Constant / Clipboard - and I agree it should not. On the other hand, how do I solve my problem?
Ideally I want to pass a key as parameter to Connect-REST and using that key I could use a Data Page to retrieve whatever variable data I want. I cannot even refer to a Data-Page either on the rule form, but at this time it is less of an issue.
One way I'm thinking is to add properties at the root of my Pega generated API request class. Then I can chose Map From = Clipboard and access as .request.MyHeaderValue. That'll do it. However, I don't think it is portable solution. If I upgrade my connector and Pega regenerates my class I will have to define MyHeaderValue property again.
Someone please give me a better option. At this time, I'm concluding the ability of passing Parameters to Connect-REST rule is useless if I cannot use Param.MyParamValue syntax anywhere within the form. Not that it should matter, but I am using version 8.6 PE.
At this time I will even accept ONE example of how to access Connect-REST parameter value *anywhere* on the Connect-REST rule form.