Skip to content

DialogService fails to update profile unless updating specific profile variables #201

@davismat

Description

@davismat

When I used the APIs to get the profile for a clientID, then try to update that profile, I get a 400 error:

status: 400, error: The name_values parameter specified does not properly specify the name value pairs for the profile

Here is some example code:

String dialogID = "xxxx" // email bug author for dialogID if required
Integer wdsID = 0; // email bug author for wdsID if required
Map<String, String> profileMap = dialogService.getProfile(dialogID, wdsID);
profileMap.put("user_name", "Fred Jones");
dialogService.updateProfile(dialogID, wdsID, profileMap);

The profileMap is successfully populated, and I can see the default value for the "user_name" profile variable. But the updateProfile method returns the error above.

I notice that if I retrieve the profile variables individually, such as:

dialogService.getProfile(dialogID, wdsID, "user_name"), and then update them lines 2-3 above, there is no error.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions