Workflow triggering actions?
We defined multiple workflow actions for opportunity sales assistant. These actions share a common business logic (WF template), but they should be processed by different groups depending on the actions.
Is there a way for us to find out the triggering action at runtime? so we can direct the workflow to the responsible group.
We were able to pass the opportunity business object to the workflow container, but it doesn't contain any information of the triggering action.
Thanks, Yan
You can't update another object when one object is updated i.e. Custom Object can't be updated automatically using Workflow when Contact Object is updated. You need to use Web Services to do this. All you have to do is define some Integration Events on the Parent object (which triggers the Update) and then based on the Integration EVent, update the Child Object (which needs to be updated).
BTW, this is not related to Contact On Demand, it is related to CRM On Demand Topic
Similar Messages
-
Hi ,
I have very strange problem .Only in one site collection across the farm i am getting this error while starting OOTB workflow in list. Everywhere else it works, even another site collection within same web application. I have stopped and restarted all the
work flow feature but still same issue?
sachinErrors in ULS logs
Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association
Id: %s
RunWorkflow: Microsoft.SharePoint.SPException: User cannot be found.
at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
lastModified)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)
at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)
at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
Microsoft.SharePoint.SPException: User cannot be found.
at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
lastModified)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)
at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)
at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)
at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
The emailenable value is true. And it just does not work for one site collection. It should not be regarding any hot fix.
Thank you for your suggestions and time. I will dig up further.
sachin -
Hi
What is the difference between using workflow and actions for a transaction?
ThanksHi....
Workflow is SAP specific technology to automate the flow of tasks among various agents in an organisation.....
U will design this WF using workflow modeller ..Tcode SWDD...
Once designed....It can be called immediately as soon as the event is triggered in the transaction...
Reward me ..It is useful -
Approval workflow triggers when not expected for SRM PO & without Agent ??
Hi All,
We are using SRM 5.0 integrated with SAP MM backends.
We are frequently facing this problem, when a buyer creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
Has anyone faced this kind of problem before?? Please help.
Thanks,
Ruchikaplease check from the workflow log , the workflow which the system is starting.
might be the system is able to start another workflow than the one which you are mentioning
use the transaction swi6 for workflow log , use the purchase order guid -
Approval Workflow triggers when not expected & without Agent ??
Hi All,
We are using SRM 5.0 integrated with SAP MM backends.
We are frequently facing this problem, when a buyer creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
Has anyone faced this kind of problem before?? Please help.
Thanks,
RuchikaHi Ruchika,
This seems to be a problem with the start condition of the PO approval workflow. Check for the same and see if there is any issue.
Regards,
Saumya -
Hi all,
I have a puchase order release workflow ,and have activated the triggering in tcode pftc,but the problem is ,every time I create a purchase order the workflow triggering gets deactivated and have to manually activate it after each Purchase Order creation or change.
Does anyone have a clue as to what may cause this problem?
Regards
MMHi Raja,
Thank you for your reply.
I tried changing the method but it still throws the same error. i dont think this error is related to the Task method , since it can also be a dummy method (as is the case with the leave approval workflow 12300111) .
Any other helpful suggestions ??
Thanks,
Joe -
Error from Cisco Agent Desktop - The agent- or workflow-initiated action request failed.
We have roughly 20 agents using Cisco Agent Desktop version 85.1.417 and I have one that when she clicks the phone button to answer a call she gets the error: "The agent- or workflow-initiated action request failed."
I reinstalled the program, but she still receives the same error. What could be causing this problem?This is what I found in the log:
2014-10-06 08:59:46:838 INFO VOIP2021 Desktop monitoring enabled for extension [9214].
2014-10-06 09:00:12:147 WARN STD3000 Get registry key <MTS_CitrixInstall> under path <SOFTWARE\Calabrio\CAD\Site Setup>. Object not found: <2:The system cannot find the file specified.>.
2014-10-06 09:00:12:159 INFO SOCKET0000 <CADEEMConnector> service on port <59015> has started.
2014-10-06 09:01:01:580 INFO PD4002 error while answering call ICDJtapiCallControlChannel (answer) error, invalid callId (17781617 != 37533406)
2014-10-06 09:09:28:543 INFO PD4002 error while answering call ICDJtapiCallControlChannel (answer) error, invalid callId (17781655 != 37533406)
2014-10-06 09:13:42:458 INFO PD4002 error while answering call ICDJtapiCallControlChannel (answer) error, invalid callId (17781669 != 37533406)
2014-10-06 09:29:03:809 INFO PD4002 error while answering call ICDJtapiCallControlChannel (answer) error, invalid callId (17781740 != 37533406)
I'm attaching part of the DBG log. I hope that it helps.
Thanks -
Hi all,
we are using Function module SWE_EVENT_CREATE to trigger workflow for MM invoice.
Business object used - BUS2081 and event used to trigger workflow is BLOCKEDQUANT.
yesterday there are 2 workflows triggered for each invoice using this FM.
Can anyone help me why 2 workflows triggered.
Thanks in advance.Hi Vijay,
Get to know when the event BLOCKEDQUANT would be triggered, I guess this event would be triggered always when there is price change in Invoice with a item blocked due to quantity change, If so use check function module in event to workflow binding to avoid duplicacy in such cases.
-Vinod -
Workflow Triggering twice when executing transaction cj21n
Hi Experts,
when i am executing transaction cj21n my workflow is triggering twice but earlier it was working fine ..
please provide your input on the same
Thanks
Deepanker DwivediHi,
The 'event' which mapped to workflow triggered twice or another event may added to the workflow
1) Did you give additional event for the workflow in the Basic Data -> Start events, if yes remove that event and test it.
2) If 'No', In the SPRO configurations some settings might have changed, Check with your Function Consultant ask any changes they done in the SPRO settings related to the T.code cj21n.
Regards,
Surjith -
Specific requirements on extraction triggering action
Hello,
I have a little bit specific requirements on how to replicate data betweeen two Data Warehouses.
So I have a DW. This DW recieves data from a lot of source systems.
Also it have some table, the structure of that table like the following (lets name the table "load_proc_table"):
source_system, load_start_date, load_finish_date.
What I need is to perfrorm extracting data from the DW basing on previously obtained value of the load_finish_date:
1. Init load. Extract data, save current value of the load_finish_date (let it be saved_load_finish_date).
2. Extract data changes using triggering action: when exists (load_proc_table.load_start_date > saved_load_finish_date AND load_proc_table.load_finish_date IS NOT NULL)
3. Extract only data changed in time period between load_proc_table.load_start_date and load_proc_table.load_finish_date (all rows in the tables are marked with date/time showing when row)
So the question: is it possible to save load_finish_date and use it for triggering extraction process?
And is it possible at all to meet requirements described below using Golden Gate?
Why I need it: I need to run ETL process only after all the actual data will be trasfered to the destination database (between saved_load_finish_date and last load_finish_date values).
Thanks.
Sergey.I think you mean the followings:
You plan to use ETL loading tool to do the initial loading. However, you want to replicate the new data added to DW during the loading time.
If this is the case, you can start the Oracle GoldenGate extraction when you start the initial load to record the changes. Then start the replicat after the initial loading is done.
If not, please clarify. May I ask what DB is used for your source DW? -
Hello Experts !!
I want to use Workflow in Action Profile.I created a new workflow but this workflow is not coming while creating action profile.
Please let me know what can be the issue?
Thanks in Advance.In Workflow container add container element with name business object eg "BUS2000125" for task
and select object type and enter your object and create.
save and active w/f.
go to action defination you can see the w/f in f4 hellp .
regard vijay -
Hi All ,
we are a strange issue in EC incoming Invoice workflow in SRM, descriptiojn is as follows
we have two workflow in our system for invoice one goes through approval and other auto approval , and on the SRM portal at header level in the basic data we have added two custom fields allow NON-PO invoice and Allow RE ,and implemented the doc_check_badi , now at the line item level if we do not give any PO refernce and check/post then we get an error message saying the entrer PO and the status of the invoice to " to be corrected manually" ideally in the above case approval workflow should not trigger , it sould only trigger when we tick the allow Non-po invoice check button , and it was working fine , but suddenly after patch upgrade the approval workflow triggers even if we do not tick the chck box at header level . Can anyone suggest did any thing go wrong in patch upgrade , I have checked all the conditions and linkages all are fine, but i guess some standard setting is missing which would have gone missing .Dear all,
Thanks a lot for reading my post with intention to answer.
The issue is resolved now.
The problem was at BAdI.To trigger the workflow with event CREATED for purchase requisition, BAdI named ME_REQ_POSTED needs to be used :
Following coding is used for the same :
method IF_EX_ME_REQ_POSTED~POSTED.
DATA: WA_EBAN TYPE EBAN.
DATA L_S_EBAN TYPE UEBAN.
DATA: OBJKEY TYPE SWEINSTCOU-OBJKEY .
LOOP AT IM_EBAN INTO L_S_EBAN .
ENDLOOP.
IF ( SY-TCODE = 'ME51N' AND SY-UCOMM NE 'MECHECKDOC' ) OR SY-TCODE = 'ME52N' .
IF L_S_EBAN-BSART = 'ZNB'.
OBJKEY = L_S_EBAN-BANFN.
SELECT SINGLE * FROM EBAN INTO WA_EBAN WHERE BANFN EQ OBJKEY.
IF SY-SUBRC NE 0.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = 'BUS2105'
OBJECT_KEY = objkey
EVENT = 'CREATED'
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME
* IFS_XML_CONTAINER =
* IMPORTING
* RETURN_CODE =
* EVENT_ID =
* TABLES
* INPUT_CONTAINER =
* MESSAGE_LINES =
* MESSAGE_STRUCT =
endif.
endif.
endif.
endmethod.
I have missed the loop block.That's why the workflow was not triggering.
Regards,
S.Suresh -
To Add Action to workflow doc action list
Hi All,
I created a custom component and then I add a Resource HTML include
In Resource HTM include I selected workflow_doc_action_forms
Then I added fallowing code in htm page
<@dynamichtml workflow_doc_action_forms@>
<$RowData.actions = "<$include action_popup_image$>" & "<$include doc_info_action_image$>"$>
<$exec rsAppendNewRow("PopupProps")$>
<$PopupProps.label = lc("wwWorkflowAssign")$>
<$PopupProps.function = "javascript:alert('<$js(WorkflowAssign)$>');"$>
<$PopupProps.ifClause = "WorkflowAssign"$>
<$PopupProps.class = "debug"$>
<$PopupProps.id = "alertDocName"$>
<$include create_action_popup_container_include$>
<$exec rsCreateResultSet("PopupData", "actions")$>
<$exec rsAppendNewRow("PopupData")$>
Then I restarted my content server.
Then I check_ in a document and Then went my workflow assignments actions I could not find these new action
Please help me what’s going wrong in this.
Thans In advance
KishoreBump
-
Embedded Image triggers action even when disabled - Agentry
Hi;
I am working on SAP Work Manager 6.0 customising, using Agentry 6.1.3. I have created these embedded images for triggering actions that act on the current selected object on the current screen. The embedded images have rules to display the enabled image when particular conditions are met and rules to display the disabled image when not met. To my suprise, the buttons still seem to trigger the underlying action even when the button is showing the disabled image. Is this standard Agentry behaviour or there is a particular way I have to implement the underlying action to avoid this?
Your help is much appreciated!
Thanks and Regards;
Sizo NdlovuHi Stephen;
Thank you for the response. If I understand you correctly, you are saying I should put an action enable rule based on the enable/disable image, to say only enable action if image = enabled? How would this rule look like?
Thanks;
Sizo Ndlovu -
Time based workflow:wait action not working
I need to build a workflow for sending mail to manager if for an opportunity sales stage "requirement" remains for more than 30 days,I have given the workflow condition as:
([<SalesStage>] = "01 - Requirements")
& then 2 actions 1st "Wait" & then "Send mail" somehow its not working.Please guide where i am getting wrong..Let me understand your business case: You need to send ONE email to the manager of the opportunity owner, if the Sales Stage = '01 - Requirements' for more that 30 days.
You need two workflows and a unused/custom field (a boolean field is preferred). Both workflows are similar. The first workflow is based on the event - When new record saved. This workflow will be invoked as soon as a new opportunity is created. The second workflow is invoked whenever the opportunity is modified using the event - When modified record saved. Any user who has edit rights to the opportunity could modify the opportunity but not change the sales stage. This results in an unpleasant situation where the manager could be flooded with emails. That's where we use the boolean field to protect against multiple updates and ensure a single email is sent after 30 days if the sales stage is still '01 - Requirements'
Workflow 1
Record Type: Opportunity
Event: When new record saved
Condition:[<SalesStageId>] = "12ASA-XCD34" AND ([<IndexedBoolean0>] IS NULL OR [<IndexedBoolean0>] = "N")
Note:
1. IndexedBoolean0 is the field named Indexed Checkbox in the list of fields
2. I have used the sales stage id. You have to find out the sales stage id for '01 - Requirements' and use it here.
Workflow 1 - Actions (remember to activate all actions and workflows)
1. Action = Wait
Period= 30 days
Reevaluate Rule Conditions After Wait = Y
2. Action = Field Update After Wait
Field Name = Indexed Checkbox
Value = "Y"
Overwrite Existing Values = Y
3. Action = Email
From > Specific Email Address> "[email protected]"
To > Relative User On Record > Opportunity Owner's Manager
Repeat this workflow configuration for Workflow 2, where the only difference is the event which should be When modified record saved
Exposing the Indexed Checkbox on the opportunity detail page layout for all users is optional (not recommended). It might be a good idea to expose this checkbox on the opportunity detail page for the administrator role only... so that he/she can take corrective action if an email is not sent after 30 days.
Maybe you are looking for
-
How to find out list of users who has logged into webtools
Hi All, From a database administration and monitoring traffic point of view we want to know who has logged into our web tools web site for a given period. Is there a easy way to have this information. basically user ID , date and time are info we ne
-
PO from SO via DI API:Base document card and target document card do not ..
HI All, I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox. I got the error message: -5002-Base document card and target document card do not match. The me
-
Issues after Mountain Lion Update
Hello, can someone please assist me with this error report I receive after trying to open the desktop and screen saver in system preferences? I also cannot open finder, it does not respond at all and when I start the computer, it does not show user a
-
How to use the space on the form which is coming when hide the elements
Hi, I have an issue with the white space coming when I am making subform visible/hidden using java script based on condition. Let me explain the complete scenario. I have created an adobe form for printing invoice details, basically I have two pages,
-
Why won't iTunes record all songs I tell it to onto an MP3 disc?
Latest version of iTunes.... When I try to record an MP3 disc using either MP3 CD or Data CD (my car stereo handles both just fine) the final disc has some songs skipped and cuts out around track number 40. And, just to make life interesting, the pla