question

Jan Vacek avatar image
Jan Vacek asked

How to pass additional data(Headers, customTags) to Azure Function

Hello, I want to pass some additional data with every request to Azure functions and I thought that CustomTags are made for thar purpose, but there is no CustomTags field inside Azure Function context/request. How I can acces it in Function? Or can I somehow add own headers? This is so limitating

CloudScript
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

·
Xiao Zha avatar image
Xiao Zha answered

Custom Tags is not designed for passing additional data with every request to Azure function, and it’s an arbitrary data you can use for PlayStream events. You may consider to using FunctionParameter in Execute Function API request body. And you can refer to PlayFab CloudScript using Azure Functions Quickstart Guide - PlayFab | Microsoft Learn to learn how to use the FunctionParameter.

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.