Pesquisas recentes
Sem pesquisas recentes

Hannes Lidbeck
Entrou em 28 de mai. de 2021
·
Última atividade em 16 de out. de 2021
Seguindo
0
Seguidores
0
Atividade total
3
Votos
0
Assinatura
1
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Hannes Lidbeck
Hannes Lidbeck comentou,
Hi Greg, thanks for your swift reply!
The issue was the ticket fields and the end-user editable flag, now everything works as expected.
Cheers!
Exibir comentário · Publicado 21 de jan. de 2021 · Hannes Lidbeck
0
Seguidores
1
Votos
0
Comentários
Hannes Lidbeck criou uma publicação,
Hi,
We're having some issues getting custom_fields and user_fields working. We receive requests on our dashboard with with without the custom data.
We get the following output from our data code (where the xxxx's are really my playfab id):
{"request":{"created_at":"2021-01-20 10:38:38","requester":{"name":"xxxx","email":"hannes.lidbeck@starstable.com"},"subject":"From Game","comment":{"body":"Test feedback"},"user":{"user_fields":{"playfab_id":"68195A5EEA8CB8A5"}},"custom_fields":[{"id":360012294580,"value":"xxxx"},{"id":27376589,"value":"bug"},{"id":27618025,"value":"hannes.lidbeck@starstable.com"}]}}
We're using Unity and REST api's, here's our code:
var data = new JsonData()
{
request = new JsonDataRequest()
{
created_at = System.DateTime.UtcNow.ToString(),
requester = new JsonDataRequester()
{
name = playFabManager.PlayFabId,
email = Email,
},
subject = "From Game",
comment = new JsonDataComment() { body = Feedback },
user = new JsonDataUser()
{
user_fields = new Hashtable()
{
{ UserFieldPlayFabId, playFabManager.PlayFabId }, // string, string
}
},
custom_fields = new JsonDataCustomField[]
{
new JsonDataCustomField()
{
id = PlayFabFieldId, // long
value = playFabManager.PlayFabId // string
},
new JsonDataCustomField()
{
id = HelpWithFieldId, // long
value = "bug"
},
new JsonDataCustomField()
{
id = EmailFieldId, // long
value = Email // string
},
},
}
};
var str = Newtonsoft.Json.JsonConvert.SerializeObject(data);
var request = new UnityEngine.Networking.UnityWebRequest(Url, "POST");
request.uploadHandler = new UnityEngine.Networking.UploadHandlerRaw(System.Text.Encoding.UTF8.GetBytes(str));
request.downloadHandler = new UnityEngine.Networking.DownloadHandlerBuffer();
request.SetRequestHeader("Content-Type", "application/json");
Publicado 20 de jan. de 2021 · Hannes Lidbeck
0
Seguidores
2
Votos
3
Comentários