PDM; "Documents have changed state" notification emails
PDM; "Documents have changed state" notification emails
This is just a little thing that IMO puts a polish on a program for the through and through. Here's the scenario: We opted to use SMTP notifications instead of forcing/convincing users to have yet another app to go look for communications (existing Outlook or the PDM messaging interface.) That's been well enough. Now that we have three to five hundred files released per week there are a lot of review and released notification emails being sent out by the PDM server. Sometimes there's some conversation about that and the users tend to forward the notification email, which is nice as it has the handy links in it. Problem is there are a dozen of active and concurrent email threads with identical subject/conversation so when grouping by conversation in Outlook or using the "find all emails in this conversation" functionality in Outlook users get a useless result set with ALL the emails.
IMO, a polished, well-planned solution would be to have the subject name include something unique about that transition, maybe the transition name and the first file name or something. That would keep forwarded email conversations isolated and relevant. Just a thought and wondering if anyone else has found solution to this.
Thanks.
IMO, a polished, well-planned solution would be to have the subject name include something unique about that transition, maybe the transition name and the first file name or something. That would keep forwarded email conversations isolated and relevant. Just a thought and wondering if anyone else has found solution to this.
Thanks.
Re: PDM; "Documents have changed state" notification emails
That would be nice. I haven't found a way to do that other than the API possibly. That's a complex solution to a simple issue though...
Edit: Looks like IEdmUser5.SendMsg does the trick but I can't think of a way to simply implement that...
Edit: Looks like IEdmUser5.SendMsg does the trick but I can't think of a way to simply implement that...
Re: PDM; "Documents have changed state" notification emails
Right, trying to send an email isn't that hard, but I don't think I'd send it through the PDM notification system anyway. My other request would be to just use the users' email so that replies would be simpler and much more importantly the user would have a history of the notification emails that have been send by them.
I think this will just go in my PDM TTL.
- the_h4mmer
- Posts: 136
- Joined: Mon Jan 31, 2022 6:49 am
- x 106
- x 80
Re: PDM; "Documents have changed state" notification emails
@bnemec it's definitely not the same, but what about using the Transition Action 'Send Mail'? According to the SWX 'help' page here:
https://help.solidworks.com/2021/englis ... Redirect=1
https://help.solidworks.com/2021/englis ... Redirect=1
Maybe that could be the initial notification, then when there's a delay in state notification, you use the regular Notification option? That would presume that the same user/group would need to get the initial notification every time as it wouldn't be something that could be selected dynamically when transitioned, so it might not work.You can use system variables when defining transition actions. For example, you can include the file name (%filename% variable) in the subject line of an e-mail action.
Re: PDM; "Documents have changed state" notification emails
You might be onto something. The description field in the action seems to be used as the subject line. I didn't know that until your post prompted me to test it.the_h4mmer wrote: ↑Fri May 13, 2022 6:49 am @bnemec it's definitely not the same, but what about using the Transition Action 'Send Mail'? According to the SWX 'help' page here:
https://help.solidworks.com/2021/englis ... Redirect=1
Maybe that could be the initial notification, then when there's a delay in state notification, you use the regular Notification option? That would presume that the same user/group would need to get the initial notification every time as it wouldn't be something that could be selected dynamically when transitioned, so it might not work.
- jcapriotti
- Posts: 1868
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1211
- x 1998
Re: PDM; "Documents have changed state" notification emails
We ended up using the API to do this, mostly for our ECO system in PDM. This was so we could put any variable in the subject and message body. Also so we could send to to users whose name is in some of the variables (Approvers), before they added that option a few version back.
Jason
Re: PDM; "Documents have changed state" notification emails
I'm missing how to dynamically select who to send the email to. I don't see how the user doing the "To Review" transition can tell PDM who the reviewer is other than finding them in the list of dynamically selected notification recipients.
Re: PDM; "Documents have changed state" notification emails
I believe it would have to be stored as a file variable before the transition happens if you want it to be dynamic. It's clunky and I haven't found a great way to send notifications either for my items. Seems like notifications were sort of an afterthought that just never got implemented like they should.
- the_h4mmer
- Posts: 136
- Joined: Mon Jan 31, 2022 6:49 am
- x 106
- x 80
Re: PDM; "Documents have changed state" notification emails
I don't know that it can be selected dynamically. I suspect that it would be tricky or not possible...I understand that sometimes the same workflow could be used by multiple groups, but the reviews would remain internal to that group, so a blanket notification to everyone wouldn't be helpful but I suspect that's how this feature would operate (predefined recipients for the notification). Sorry if that's not helpful, I didn't want to make assumptions either way regarding how your notifications were being handled.
Re: PDM; "Documents have changed state" notification emails
bnemec, Just curious what you ended up doing about this, if anything ?
Re: PDM; "Documents have changed state" notification emails
I've added it to my PDM Pro TTL, does that count as "doing something"?
I have not. I'm not PDM Admin any longer, thankfully, and there are other items on the work list. As Jason mentioned the best way to go about it would be API/addin. I had to review the thread to remember the main point and it was to get the part number(s) in the email subject so the email threads would be unique in Outlook. I looked into API options and if we were to go that route we would avoid the PDM notification, instead we would open a new email in Outlook with custom message, subject and recipient based on user's "review buddy". This would allow us to see the sent emails as PDM notifications disappear once sent which is a separate topic that could be solved at the same time. But it's not low hanging fruit and there's still other tasks that are higher priority for the PDM Admin.