Skip to main content
Aug 31, 2023 4:11 PM UTC
Solved

ApplicationKey SetExpirationDate service does not accept a DATETIME value

I can't get this service to accept the output from a DateTIME picker widget.  It always says that the parameter is the wrong type.  If it isn't looking for a DATETIME, what is it looking for?

 

 

VelkumarAnswer
Sep 1, 2023 4:49 AM UTC

Hi @golsen1 

 

I tried using the service to set the expiry date from Mashup. It works perfectly

 

ApplicationKeys["AppKeyName"].SetExpirationDate({
 expirationDate: dateTimeValue /* DATETIME */
});

 

Could you please tell me your Thingworx version or how you are trying to achieve it? 

 

/VR

5 replies

VelkumarAnswer
Sep 1, 2023 4:49 AM UTC

Hi @golsen1 

 

I tried using the service to set the expiry date from Mashup. It works perfectly

 

ApplicationKeys["AppKeyName"].SetExpirationDate({
 expirationDate: dateTimeValue /* DATETIME */
});

 

Could you please tell me your Thingworx version or how you are trying to achieve it? 

 

/VR

golsen1Author
Sep 1, 2023 11:41 AM UTC

Yes!  It does work perfectly.  Thank you.  Now please go look at the documentation that you provide for Application Key services.  Would it have killed you guys to include the name of the parameter?  Is there some other reference that you provide that explicitly calls this out?

 

At any rate, thanks again.  Works great.

Sep 1, 2023 1:29 PM UTC

Hi @golsen1 

 

Could you please post the documentation link here.  

 

/VR