Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the Created Date

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
534 Views, 5 Replies

Using the Created Date

In the scripting reference there is an item descriptor created date...

 

descriptor.createdDate (JavaScript date)

Date and time the item was created (Created on in Owner and Change Summary)

 

Is the "creationDate" arrived at when the item is "saved" at creation?  Or, does it record when the '+' button was clicked?

 

If when "saved", then is there a way to record the '+' click/event?

 

If when + is clicked, how can I access that information via a script?

 

Thanks,

Tags (1)
5 REPLIES 5
Message 2 of 6
jpiggee
in reply to: Anonymous

Hi Bill,

 

To answer your question the item.createdDate, is based on when the item is saved after all possible behavior and workflow scripts are completed for the item created. Until that point in time the Item technically is not a saved committed to the database and is lacking that information.

 

At this point in time there is no way to capture that information as it is a not registered to the database as a committed action by user.

Joseph Piggee
Fusion 360 Administrator
TPI Composites
jpiggee@tpicomposites.com
Message 3 of 6
Anonymous
in reply to: jpiggee

Thanks Joe!

Thought that would be the answer, but had to check.

 

Therefore, if I want a date I will need to create one using java scripting. That's my take anyway.

 

Thanks.

Message 4 of 6
jpiggee
in reply to: Anonymous

Bill,

 

Unfortunately, even by scripting, I cannot think of a feasible way to capture the actions of starting the creation of the item. You can capture the time of starting the script but that would be the same as looking at date/time of item creation that is already logged.

 

However if you do figure it out, please share with us so we can all learn.

 

Joseph Piggee
Fusion 360 Administrator
TPI Composites
jpiggee@tpicomposites.com
Message 5 of 6
Anonymous
in reply to: jpiggee

How to update the item created date on some action?

i tried with bellow way: 

item.descriptor.createdDate = item.workflowActions[0].timeStamp;

 

Didnt update the created date. 

 

 

Message 6 of 6
john.denner
in reply to: Anonymous

`item.descriptor.createdDate` would be a read-only field. So there wouldn't be anyway you could change that date.

Additionally, in my limited experience, without being overly clever (never a good idea) using the JS Date object can be assigned to a date field but not a date time like Created On can handle. So you either get a string with the date in Eastern Standard time or just a date with the time hidden.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report