hi, i'm trying to create a group on playfab by calling a function from construct 3, via the cloudscript addon,
//this is the code on revision
handlers.createGroup = function (args, context) {
var entityProfile = context.currentEntity;
var apiResult = entity.CreateGroup({
Entity: entityProfile.Entity,
GroupName: "Example Group01"
});
return {
apiResult
};
}
But this code comes out in the playstream: "Cannot read property 'Entity' of undefined"
what i need to change in my code? How do i get the entity to read?
I am waiting for an answer to be able to proceed with my app, thanks for your attention.