apigee-edge-drupal icon indicating copy to clipboard operation
apigee-edge-drupal copied to clipboard

Data selector developer_app.apiProducts.value is not available in Rules action for Update app

Open sathyaprakash-mind opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

In rules module, the data selector developer_app.apiProducts.value is not available for update app. It is only available for new app creation using setInitialApiProducts(). Basically, I want to trigger an email with the api products selected when we create new app or update the existing app using the rules actions. Currently, I am getting the values for {{developer_app.apiProducts.value}} only on the new app creation. For the update app, the token {{developer_app.apiProducts.value}} is not working. It is not giving the desired output instead the data selector is getting printed as it is.

Describe the solution you would like

The data selector {{developer_app.apiProducts.value}} should be made available for Update app functionality as well. When the existing app is updated, the email should include the value of the api products selected in the update app form.

Describe alternatives you have considered

Can you please suggest the alternative ways like how to get the api products selected in the app update form in the rules action under the data selector developer_app.apiProducts.value?

Additional context

Add any other context or screenshots about the feature request here. image

sathyaprakash-mind avatar Sep 27 '24 09:09 sathyaprakash-mind

Hi @sathyaprakash-mind Thanks for bringing this to our attention. Can you please share more details, like the PHP, Drupal, Apigee modules & rules version you are using.

It will be helpful if you can share the composer show output.

Also I am considering that you are using rules module to set a email trigger on update & creation of App. On creation it works fine and only on update you don't get the desired value.

Do let us know, if my understanding is correct and also do share the above mentioned details.

Thanks!

kedarkhaire avatar Sep 27 '24 11:09 kedarkhaire

Hi @kedarkhaire, You are right. I am using the rules module to set a email trigger for both update and creattion of App. It is working only for App creation and it is not working for App update. Could you please let me know the way to make it work for Update App also?

Below are the versions we are using: PHP - 8.1.17 Drupal - 9.4.8 Apigee_edge - 2.1.4 Rules - 3.0.0-alpha8

Thanks!

sathyaprakash-mind avatar Sep 27 '24 12:09 sathyaprakash-mind