apigee / apigee-edge-drupal

The Apigee Edge module enables you to integrate a Drupal 9 or 8 site with Apigee.
https://www.drupal.org/project/apigee_edge
GNU General Public License v2.0
32 stars 45 forks source link

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

Open sathyaprakash-mind opened 1 week ago

sathyaprakash-mind commented 1 week ago

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

kedarkhaire commented 1 week ago

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!

sathyaprakash-mind commented 1 week ago

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!