question

Ibrahim Abu khater avatar image
Ibrahim Abu khater asked

Use playstream Properties in rule action

I have a rule that grants the user item when another item from another certain catalog, given that both consumed and item to be granted have the same itemID.

can this be implemented directly Grant Item action and pass the item ID from the playstream as shown below or do I have to write an azure function to do so.

PlayStream
imagepng-mh.png (51.9 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

No, the Item Id in the actions should be an existing constant item id. If you want to refer to the item id in the event, you may use the Azure function with this context model: PlayFab CloudScript using Azure Functions Context Models - PlayFab | Microsoft Learn.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]