Skip to main content
4-Participant
August 31, 2023
Solved

ApplicationKey SetExpirationDate service does not accept a DATETIME value

  • August 31, 2023
  • 1 reply
  • 1858 views

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?

 

 

Best answer by Velkumar

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

1 reply

Velkumar19-TanzaniteAnswer
19-Tanzanite
September 1, 2023

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

golsen14-ParticipantAuthor
4-Participant
September 1, 2023

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.

19-Tanzanite
September 1, 2023

Hi @golsen1 

 

Could you please post the documentation link here.  

 

/VR