Is it possible to execute a Workflow to run a SQL Query
I need to insert data from a SharePoint list into a separate SQL database. Since Querying the Actual SharePoint list data in the SQL is a supposed No No....
The purpose of this is, Human Resources and accounting use different programs then SharePoint.
I need to have their 3rd party app also get the data that goes into a SharePoint List the list data then needs to be available for the 3rd party app. the 3rd party app, likes SQL server DBs...
So here is the cycle:
InfoPath form filled out > becomes list data > triggers a Workflow to move data to new SQL DB > then once the data in the SQL table db the data can be queried by the 3rd party app.
any ideas on how to write the query? or Powershell?
Just to simplify your requirement, you could use Event Receivers.
You can write event receivers and update SQL table once the data gets added to the list.
http://msdn.microsoft.com/en-us/library/ee231563.aspx
http://msdn.microsoft.com/en-us/library/ff398052.aspx
http://sharepointbulletin.blogspot.co.uk/2013/03/adding-details-to-database-table-using.html
Alternate would be Timer jobs -
http://msdn.microsoft.com/en-us/library/office/hh528519(v=office.14).aspx
you can use ADO.NET to update table.
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you
Similar Messages
-
Is it possible to write an abap code be SAP SQL query.(ECC 6)
hello guys,
Is it possible to write an abap code be SAP SQL query.
Scenario : table A has a field say f1 of length 10 and table B has a field say s1 of lenght 20. in sap sql i am able to link all the other tables but i am not able to link
table Af1 --->Table Bs1. as the length doesnot match. so is it possibel that using abap code I can pick 10 characters from table A field f1 adjust it to 20 characters using abap and map it to field s1 of table B.
Please let me know how to accomplish this if possible.
thanks in advance!!Herm,
Adding code is done in the infoset.
Please do following:
> Goto SQ02
> Type in the infoset that the basis for your query, <change>
> Press <code> OR <shift><f8>
> Tou'll see 4 tabs: Extras, Selections, Code, Enhancements.
> GoTo tab Code
> Choose the coding section (<f4> gives you an overview)
> Enter the code.
You may set a breakpoint to see what the query in SQ01 will do with it.
Succes!
Frank -
Executing a column which has a sql query in a tabular form
Hi,
I have a tabular form which contains a column named as SQL which has sql statements in it. Without going to the SQL workshop in Apex i want to execute that query in the tabular form itself. For that i've created a page item which fetches the particular rows sql query and created a button 'EXECUTE'. When i click the execute button it should run the query and should display whether the query is correct or not and should show the error message.
Can any one provide solution for this or whether there are any other ways to achive this scenario.
With Regards
Balaji.P.KBalaji P.K wrote:
Can any one provide solution for this or whether there are any other ways to achive this scenario.Difficult as we have no idea what this "scenario" actually is. Go back several steps and explain in detail the problem this is supposed to solve.
I have a tabular form which contains a column named as SQLBad idea. <tt>SQL</tt> is a PL/SQL reserved word. Using any token from Oracle namespaces as a database identifier is confusing/problematic.
which has sql statements in it.Why? Where does this SQL come from? What is the source of the tabular form?
Without going to the SQL workshop in Apex i want to execute that query in the tabular form itself.Explain the "execute that query in the tabular form itself" concept. Where do the results go? -
HOW TO EXECUTE TWO "INSERT INTO" IN ONE SQL QUERY?????
i have try the following:
INSERT INTO tab VALUES('a','b');
INSERT INTO tab VALUES('c','d');
and
INSERT INTO tab VALUES('a','b');
INSERT INTO tab VALUES('c','d');
but does not work in ORACLE 10G XE
please help!!It is working fine in Oracle 10g.
SQL> desc emp_t;
Name Null? Type
EMPNO NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)And the script is --
insert into emp_t values(7799,'Ani','CLERK');
insert into emp_t values(2233,'Rupak','SW'); --File Name is a_a.sql
commit;And, now from command prompt --
SQL> set serveroutput on
SQL>
SQL>
SQL> set lin 1000
SQL>
SQL> select * from emp_t;
EMPNO ENAME JOB
7777 Avik CLERK
6666 prithwi CLERK
7639 Roni CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
EMPNO ENAME JOB
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 BARRY CLERK
7902 FORD ANALYST
7934 MILLER CLERK
5639 Atul CLERK
17 rows selected.
SQL> @C:\Personal\RND\Oracle\Misc\a_a.sql;
1 row created.
1 row created.
Commit complete.
SQL>
SQL>
SQL> select * from emp_t;
EMPNO ENAME JOB
7799 Ani CLERK
2233 Rupak SW
7777 Avik CLERK
6666 prithwi CLERK
7639 Roni CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
EMPNO ENAME JOB
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 BARRY CLERK
7902 FORD ANALYST
7934 MILLER CLERK
5639 Atul CLERK
19 rows selected.Regards.
Satyaki De. -
Possibility to show opening balance of a GL account through SQL query?
Hi experts,
Is it possible to run an SQL query in SBO that shows the opening balance
of a GL account based on a date entered by the user?
This is similar to how the general ledger shows the opening balance of a GL account based on the posting dates entered.
Thanks for your ideas.Hi Gordon,
Thanks for that idea.
I am thinking of the following:
1. Create a virtual table (#TEST) from a SELECT statement that gets all journal entries for the specified GL account BEFORE the specified posting date.
2. Perform a SELECT statement that sums the debit and credit from (#TEST).
This should show the opening balance of the GL account right?
Regards,
Eric
Edited by: eceguerra on May 18, 2011 7:02 AM
Edited by: eceguerra on May 18, 2011 7:02 AM -
Is it possible to trace users sql query disconnected from the session
One of my users used to run the sql query daily, Now her machine rebooted and she lost all the sql query. is there any way to trap the sql what she used to run? I have the os/sql username....
thxuser587112 wrote:
Yes we are using 10.2.0.3. main requirement of user is all the sql query she used to run.To get this query she is giving me her os user.And says why it is not possible?What would that be possible? If this database is reserved for her only that could be possible.
Once she lost her session, there's no reliable method to trace all her SQL queries. The SID will be reused by Oracle, her SQL could be flushed out of shared pool, consider Oracle is designed to tackle with thousands of queries per seconds there's no feasible way to save all these information without impact on performance.
So unless you had sql trace turned on her session or the database is reserved for her use only, then no it's not possible to retrieve all her SQLs and guarantee it. You might be able recover some of SQL from the mentioned DBA views but no guarantee what so ever.
PS. it's no guarantee to get all her SQLs even her session is still active, unless SQL trace were turned on.
Edited by: yingkuan on Jan 13, 2009 11:48 AM -
How can i execute a workflow using a bapi/wapi??
Hi All,
How can i execute a workflow using a bapi/wapi??
pls advice
thanksHi Hrus,
it's not as simple as a single BAPI to approve a workflow.
Workflow comes with a Workflow API (WAPI) that you can use to programmatically interact with the workflow system. The WAPI is implemented as a group of RFC-enabled function modules that are prefixed with "SAP_WAPI_".
Approving a workflow is simply taking a decision path for a workflow item. It is logically no different to rejecting the same workflow item or any other workflow decision.
As part of NetWeaver workflow is tightly coupled to the WAS platform you are running on so you may need to perform WAPI operations slightly differently on older releases.
Some of the WAPI calls you might need to use include: -
SAP_WAPI_GET_HEADER to get the workitem header
SAP_WAPI_READ_CONTAINER to get the workitem container
SAP_WAPI_GET_OBJECTS to get the attached objects
SAP_WAPI_DECISION_READ to get a list of possible decisions
SAP_WAPI_SET_WORKITEM_STATUS to set the workitem status
SAP_WAPI_WRITE_CONTAINER to write to the workitem container
SAP_WAPI_EXECUTE_WORKITEM to execute the workitem
I usually do what you are trying to do by adding the decision to the workflow container and then executing the workflow.
Be warned, you can really stuff things up if you get this wrong! Make sure you know what you are doing.
Quoting from Practical Workflow for SAP by Alan Rickayzen, et al from SAP Press...
Writing directly to the workflow container is dangerous because it can compromise the integrity of the process.
...be careful that you do not waste time duplicating existing ad hoc features of SAP's Workflow Engine.
For example you can use events (combined with wait steps), instead of container modifications to force the workflow to restart.
Cheers
Graham Robbo -
Executing multiple workflows via an ActiveSync form
Is it possible to launch multiple workflows from an ActiveSync input form?
I am playing with the viewOptions.Process and processInputs.task.process but cant seem to figure it out.
Any ideas that can shed light on this would be highly appreciated.
/AForms are generally used for Data transformations. The input form is provided for this purpose.
You can specify a "process rule" on Active Sync configuration. This rule is the name of the workflow that will be launched when ActiveSync is executing. You can launch multiple workflows from this workflow then.
regards,
Manish Gurnani -
How to send E-Mail Notification executing through workflow?
hi All
I want to send E-Mail Notification executing through workflow in MDM Data Manager?
I have tried it, But still i am unable to send E-Mail Notification?
i will explain, how i have tried?
1) I have created the simple workflow with the following components
they are in sequence
start--> process-> notify--->stop
2) owner of the workflow is Admin and launcher of the workflow is Admin and i have given email id to the Default Admin user in the console.
3) i have created another user (i.e. User2) with default roles as like as Admin and i have assigned User2 to the process component in workflow and I have created e-mail address for the User2 in the console.
4) i have created another user(i.e.User1) with default roles as like as Admin. and give e-mail address,under the notify component User1 is selected in To Field.
5) stop component as usual
coming to configuration part about the SMPT server in MDS.ini file
1) in mds.ini file for the MailServer=, I have given SMTP Server name once and restarted the server and executed the workflow, but not worked
2)in mds.ini file for the MailServer=, i have given SMTP Server IP Address and checked the port,and we have configured the host file also and restarted the server and executed the worflow , but not worked
In all the ways i have executed and tried to send E-Mail Notifications through workflow, But I didn't
can any one help where i have went wrong, so i can rectify it
what actually we have to give in mds.ini file? is any other cofiguration required for it?
if any one have any solution for it , can you please explain me in step by step
Thanks in Advance
bharat.chinthapatlaHi Bharat,
your steps seems to be correct. Just try to ping your mail server, to verify if your mail server is running up, besides note that mdm go throw port 25 for sending emails, so please check if you are able to send emails using port 25 in your network.
Regards,
Vito -
When I try to execute any workflow I get the error "Something went wrong.."
Hello,
Last weekend I updated the servers farm and I executed "SharePoint 2013 products configuration wizard" But I had an error and the wizard showed this: Conpleted configuration settings will not be rolled back.
From this moment when I try to execute any workflow in one of my site collections I always get the error "something went wrong.." Then I was checking the logs and I saw this:
04/08/2015 08:12:18.82 w3wp.exe (0x1318) 0x2070 SharePoint Foundation
General 8nca Medium Application error when access /_layouts/15/IniWrkflIP.aspx, Error=Requested
registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue)
at Microsoft.Office.InfoPath.Server.Util.UrlManager.<>c__DisplayClass1.<OpenFileNameMap>b__0() at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.Office.InfoPath.Server.Util.UrlManager.OpenFileNameMap()
at Microsoft.Office.InfoPath.Server.Util.UrlManager..cctor() 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
04/08/2015 08:12:18.82 w3wp.exe (0x1318) 0x2070 SharePoint Foundation
Runtime 6616 Critical Requested registry access is not allowed. 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
04/08/2015 08:12:18.82 w3wp.exe (0x1318) 0x2070 SharePoint Foundation
General ajlz0 High Getting Error Message for Exception System.TypeInitializationException:
The type initializer for 'Microsoft.Office.InfoPath.Server.Util.UrlManager' threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name,
Boolean writable) at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue) at Microsoft.Office.InfoPath.Server.Util.UrlManager.<>c__DisplayClass1.<OpenFileNameMap>b__0()
at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.Office.InfoPath.Server.Util.UrlManager.OpenFileNameMap() at Microsoft.Office.InfoPath.Server.Util.UrlManager..cctor()
--- End of inner exception stack tra... 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
04/08/2015 08:12:18.82* w3wp.exe (0x1318) 0x2070 SharePoint Foundation
General ajlz0 High ...ce --- at Microsoft.Office.InfoPath.Server.Util.UrlManager.GetConverterGeneratedFilePath(ConverterGeneratedFile
file, Document document) at Microsoft.Office.InfoPath.Server.SolutionLifetime.ScriptIncludes.RenderCssLinksToHeader(Control ctrl, Document document, Boolean ribbonEnabled, Boolean isDisplayMode) at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.TryToAddCssLinksToHeader()
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBindHelper() at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.WebParts.Part.DataBind()
at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at Sy... 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
04/08/2015 08:12:18.82* w3wp.exe (0x1318) 0x2070 SharePoint Foundation
General ajlz0 High ...stem.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean
raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at Microsoft.Office.Workflow.IniWrkflIPPage.LoadFromWorkflowAssociation() at Microsoft.Office.Workflow.IniWrkflIPPage.OnLoad(EventArgs ea)
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean inc... 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
04/08/2015 08:12:18.82* w3wp.exe (0x1318) 0x2070 SharePoint Foundation
General ajlz0 High ...ludeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 539dfa9c-f4fc-b08b-bdb7-dca4cb91a7b5
But I cannot find any solution.
Please Help!Hello,
After some troubleshooting finally I opened a case to Microsoft, finally we solved the error:
I cleared the configuration cache:
http://blogs.msdn.com/b/jamesway/archive/2011/05/23/sharepoint-2010-clearing-the-configuration-cache.aspx
With this I could execute the wizard without any problem and the problem was solved.
But if with this the problem is not fix, Apart from that, you can check this:
Apparently, Microsoft change the number version of the SP1, then if you have the first sp1 versión, you will have problems with the wizard because is looking for the newer version.
The first SP1 number version was:
15.0.4569.1506
The currently SP1 version is:
15.0.4571.1502
You can check your versión with this script:
http://blogs.technet.com/b/stefan_gossner/archive/2015/04/20/powershell-script-to-display-version-info-for-sharepoint-product-and-language-packs.aspx
Finally if you have the first version the solution is download SP1 again (newer) and install it again (it is not necessary unistall the currently SP1) When you finish, try to execute wizard again and everything will work fine.
Hope this helps! -
Question: Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?
What I would like to do is to create a pdf with an Acknowledgement button that when click will report (via JavaScript) to the LMS (Learning Management System) that the end user viewed/acknowledged the pdf.
Can this be down with JavaScript in this fashion?Thanks, (My fault, as I should have specified this.) Due to legacy reasons I need to use ie, and so I can't use the PrintPdf firefox plugin. So from reading the rest of that thread, the best method does seem to be to get hold of a copy of acrobat, and add a Print() script in each file, and open it in a new tab.
At least it gives me somethigin to try anyway :-) -
Is it possible to execute a transaction by calling a irpt page?
Hi,
Is it possible to execute a transaction by calling a irpt page?
If possible, is there a sample code (.irpt code) for MII 12.1?
Thanks.You can use a SERVLET Tag in your irpt to execute an xacute query.
Here is the help file from 11.5 but this works in all the versions.
[http://help.sap.com/saphelp_xmii115/helpdata/en/Advanced_Topics/Report_Generation.htm|http://help.sap.com/saphelp_xmii115/helpdata/en/Advanced_Topics/Report_Generation.htm] -
It is possible to execute a SQL query from OMBPlus?
We have some simple SQL scripts we'd like to be able to incorporate into our existing TCL scripts, instead of having to run them outside of OMBPlus in sqlplus. Is is possible to run a SQL SELECT query from OMBPlus and/or TCL? And get a result set back to iterate through?
Thanks,
Jim C.You can execute SQLPlus from OMB or just get down and use JDBC to execute the SQL, see others posts on forum such as below;
How to run SQL from OMB+
Cheers
David -
Possible to execute custom SQL query?
Is it possible to execute a custom SQL query and get back a collection of
objects with Kodo JDO? Query expression languages like JDOQL are all very
well (I actually think JDOQL is pretty messy), but sometimes when you've
got a complex query (and you know you're using a RDBMS) it is best
accomplished in a SQL statement. I see Kodo has extended JDOQL, which is
good, but developing custom extensions seems to be limited to implementing
kodo.jdbc.query.JDBCFilterListener where you can customise the where
clause. What I want to be able to do is to specify the entire SQL string.
I am looking into using Kodo JDO for my organisation, and being able to
use custom SQL is something i would expect (and something we can do with
our current O/R mapping product (TopLink)).
Regards,
AlexPatrick Linskey wrote:
On Tue, 30 Sep 2003 10:57:13 +0000, Alex wrote:
being able to use custom SQL is something i would expect
We absolutely agree. Take a look at the samples/customSQL example in the
Kodo distribution.
-Patrick
Patrick Linskey
SolarMetric Inc.Hi Patrick,
I have downloaded kodo-jdo-3.0.0RC1 for windows for evaluation, but there
is no samples/customSQL directory.
Alex. -
Is i possible to trigger a workflow from the creation of an event in iCal
Is i possible to trigger a workflow from the creation of an event in iCal
Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
GraemeHmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
* Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/.
Maybe you are looking for
-
Dear All Excise invoice is generated automatically when we create billing document , due to some reason we cancel billing doc both accounting as well as excise doc gets cancelled . Again when we create billing document, only accounting document is ge
-
How do you extract an .MP3 from an .MP4 file using iTunes?
I have figured out how to import a home video into iTunes (video taken with my iPhone 5S), and have figured out how to use iTunes to convert the video (recorded in Quicktime) to .MP4 format ... but I cannot then use iTunes to "Create a New Version" a
-
The question says it all!
-
How to create attachments in User Tasks in 10.1.3.1?
Hi all! I didn't find any info on how to create an attachment for User Task in Worklist application which comes by default with SOA Suite 10.1.3.1 DP (http://host:port/integration/worklistapp/). In previous releases (for ex. 10.1.2.0.2) it was possib
-
3rd gen. wont charge on my computer
Yesterday I received my 3rd generation Ipod. I bought it off ebay and it was just the ipod so i went outy and bought some ear phones and a Belkin USB 2.0 to 30 pin cable for Ipod To charge and sync it. Well This morning my Ipod died from a low batter