Greetings. I'm attempting to upload a document that is attached to an InfoPath form to a SharePoint document library. I can use one of the two following approaches:
1. SmartObject 'Create' method that points to a document library. Within InfoPath, set my Create.content property equal to my main data source's 'attachment' node.
2. SharePoint Document event within the workflow. In the wizard point the XML's 'attachment' node as the file to upload to SharePoint.
In either of these scenarios I need to be able to rename the document (i.e. append a unique field to the end of the name) prior to uploading because I don't want to either overwrite an existing file or have an error thrown stating that the file already exists. I can do this in blackpearl because I write code to modify the file name prior to upload, but how do I accomplish this in blackpoint? Thanks.