I am new to Filenet BPM and I am trying to set a value from a workitem to document Property. Here is my requirement -
I have a Workflow with a document attached which should go to approval process, If it is approved then I have to set a property name 'status' in document property to 'Approved' and if it is rejected then I have to set it as 'rejected'. At first I thought it should be easy but I do not find any way to achieve this. Please help.
If you already have the document as an attachment, use the default, out of the box CE_Operations queue to update the property. See the screenshot for a small sample.
Dependant on the outcome of the activity, you call the an operation and use the 'setStringProperty' operation. As attributes it takes the attached document, the property to update and the value to set.
Related
In mendix i have 2 pages: Course Overview and Course_newEdit.
As the names suggest overview i the overview page and the second one is edit page.
The entity name is Course.
Its attributes are: Name String and Description String.
I have a requirement that i when a user edits course, the default value for name should be the last user input value.
So if the user has give first course name as History.
The second time any user tries to input the name, it should by default show History.
how can this be achieved?
I couldn't find any option for the same in the default settings.
Mendix 9.2 pro
If you are editing an existing course than it will automatically show the value that was last stored in the database so you don't need to do anything there.
If you are creating new course and want the default value of 'Name' attribute to be automatically filled in using the previous course object, than you have to retrieve last saved course object from database with range option = 'First' and add sort property that can identify the retrieve object as last saved course object. Than you can use retrieved last saved course and copy 'Name' to your new course object.
Please check out Mendix Forum and Mendix Slack Community if you have more questions.
Mendix Forum: https://forum.mendix.com
Community Slack: https://join.slack.com/t/mendixcommunity/shared_invite/zt-hwhwkcxu-~59ywyjqHlUHXmrw5heqpQ
first you need to retrieve the list "Course" from database then sort the list by creating date descending then retrieve head of the new sorted list then fill this object in the new created one
course/name
For a charity, I've set up a mailing list with some customised fields. One of these fields has a default value, and updated values for individual subscribers. However, I now have to reset the field for all subscribers to a new default value, and this will need to be done again on a yearly basis.
The only way I found to do this so far is to delete the field and recreate it with the new default value. But this is very sensitive to errors when I transfer the management to other volunteers.
Is there an easier way to achieve a field value reset in Mailchimp?
In addition, I'm looking to update a field value for a subset of subscribers in batch. If possible, the solution applies to this problem as well.
Thanks, Juul.
You can export the contacts list following these steps:
https://mailchimp.com/en/help/view-or-export-a-list/
Then make the changes you need in the exported list.
Finally, import it again checking the field "Update existing contacts":
https://mailchimp.com/help/import-contacts-mailchimp
Is it possible to set value for an ID type property from a workflow?
We have a workflow to create a date wise record folder everyday when first mail for that day is ingested in the system (IBM IER). For this we are using createRMFolder method from RM_Operations component which is OOTB component for IER.
We can set the properties for the new folder by passing them as a string array to the operation. But the issue is we need to set value for an ID type property for the newly created record date folder.
Please suggest if there is way of achieving this.
You can use the bundled CE_Operations component. Specifically, you need to use the setObjectProperty method passing it the Id object.
I would like to create a possible value for a specific picklist on CRM4.
I can see that the possible values are located in the stringmap table. My question is about how to properly add another record. The objecttypecode (10063) and attributename (assessmenttype) already exist - I simply need to add a new option to the picklist.
Of course, not wanting to void our support, I cannot just add the record to the table.
I have exported the xml configuration of this entity, and I can see the picklist values in this file under the "options" node of the picklist attribute node. I have imported this customization but it clearly is not all that needs to be done - my new values are neither in the stringmap table or visible on the form. what else needs to be done?
You need to use the metadata web service to make these updates. Check out http://technet.microsoft.com/en-us/library/dd904037.aspx for a walkthrough of how to create picklists. You'll also want to look at the UpdateAttributeRequest class.
I have a MS CRM 4 form where when certain fields are changed, I need those fields to be written to an excel sheet.
So, I edited the form field onchange event to call crmform.save() which triggers a plugin to run that writes the field value to a named range (1 cell) of an excel sheet.
However, I don't know which field caused the save. Is there a way to get that information? (Not all fields on the form need to go to the excel sheet)
If I use this: DynamicEntity target = (DynamicEntity)Context.InputParameters[ParameterName.Target];
I can look at specific fields, but I have no way of knowing which ones changed.
Any suggestions?
It's my experience that only the changed fields will have value (in the DynamicEntity) when you update an entity. So let's say you have an entity with a FirstName and Lastname. If you only change the LastName and save. The LastName will have a value however FirstName with be null (unless you have som javascript code that forces the FirstName to be submitted).
If your plugin is triggered on the Pre-Event of the Update on your entity, you should be able to compare the IPluginExecutionContext.PreEntityImages to your DynamicEntity that you've fetched from the Target.
Or if your plugin is triggered on the Post-Event of the Update, you should be able to compare the IPluginExecutionContext.PreEntityImages with IPluginExecutionContext.PostEntityImages.
Looks like you are already going a different way, but another suggestion is to create a hidden field - "FieldThatChanged." In your field on-change javascript, set that field to the name of the field that changed, then access that in your plugin.
Yep, totally changed the way I approached this. I'm using jquery in an iframe to pass all the exact fields (name/value pairs) I want to a method of an ASPX file running in the ISV folder that takes the neccesary action. Thanks for the suggestions all!
I recommend using the Pre and Post Images as suggested by #Forgotten Semicolon. And in addition set the Filtering Attributes so the Plugin is triggered only on the change of the fields you care about.