You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see that the problem is that you are trying to update a value that is reserved for Intercom. If you check the company Model there are two lines that are relevant here:
These attributes are described as this in our docs:
So the created_at is read-only and reserved for Intercom. And the remote_created_at is the timestamp you want to edit to change that in the UI. This is the API expected behaviour, so not a problem of the SDK itself. 👍
created_at should probably be set as read only then in the Company model in the .NET SDK if it's something you cannot change.
It seems to be working now, at least with the created_at being set from Intercom but setting industry doesn't do anything, the value is still set as unknown in Intercom.
Hey again @FFRainman can you send me the request_id of a call you made with the industry value and where it didn't go through, as well as a snippet of code you used for it? I can investigate this further. 👍
Hey again @FFRainman! I did another round of testing and this seems to be working in both the old version of the library and the PR #97. This is what I tested:
Is this still not working for you? If so it's possible that there is something in your setup that isn't quite right. Feel free to reopen this if that's the case. 👍
Activity
kmossco commentedon Feb 6, 2018
Looking at the current code I can see that a
created_atattribute is missing, but we do have anindustryattribute since this PR: #94.Not quite sure why it isn't being set, but looking into it. 👍
kmossco commentedon Feb 15, 2018
I can see that the problem is that you are trying to update a value that is reserved for Intercom. If you check the company Model there are two lines that are relevant here:
intercom-dotnet/src/Intercom/Data/Company.cs
Line 13 in 7d2dff5
intercom-dotnet/src/Intercom/Data/Company.cs
Line 14 in 7d2dff5
These attributes are described as this in our docs:
So the
created_atis read-only and reserved for Intercom. And theremote_created_atis the timestamp you want to edit to change that in the UI. This is the API expected behaviour, so not a problem of the SDK itself. 👍FFRainman commentedon Feb 16, 2018
created_atshould probably be set as read only then in the Company model in the .NET SDK if it's something you cannot change.It seems to be working now, at least with the
created_atbeing set from Intercom but settingindustrydoesn't do anything, the value is still set asunknownin Intercom.kmossco commentedon Feb 16, 2018
Hey again @FFRainman can you send me the request_id of a call you made with the industry value and where it didn't go through, as well as a snippet of code you used for it? I can investigate this further. 👍
FFRainman commentedon Feb 16, 2018
Here is a simple code snippet from .NET, not sure where to find the
request_idof the call.kmossco commentedon Feb 16, 2018
The request_id should be in the headers that we return from the server. But with this code it should be enough, looking into it! 👍
kmossco commentedon Apr 1, 2018
Hey again @FFRainman! I did another round of testing and this seems to be working in both the old version of the library and the PR #97. This is what I tested:
This created the following company:
Listing the
remote_created_atattribute returns:Is this still not working for you? If so it's possible that there is something in your setup that isn't quite right. Feel free to reopen this if that's the case. 👍