Creating an opportunity linked to a contact via API

Hi,
We are trying to create opportunity records against a contact but don't understand how to link the 2 objects via API as my development team can't find a direct link when looking in the WSDL.
I can see in the UI that the primary contact can be stored against the object, would just like to know how to do this via API.
Thanks for your help in advance.
Leslie

Hello Leslie,
There are a number of ways to accomplish this. As you mentioned in your post there are often Id fields exposed on a parent object that allow one to associate to a record of a different type, in this case you can send a request for the parent object, in this case Contact and specify the ID of an existing Opportunity record.
You can also use the child object structure to create an association. For example, if you are entering a new Contact and a new Opportunity you can use the <ListOfOpportunity> within a Contact Insert request to also insert a new Opportunity. I have attached a sample SOAP request below.
I would recommend your team review the WS User Guide as well as the sample code provided at samplecode.oracle.com for further details. Please see the announcements at the top of the forum for additional links.
I hope this helps.
Thanks,
Sean
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ContactWS_ContactInsert_Input xmlns="urn:crmondemand/ws/contact/10/2004">
<ListOfContact>
<Contact>
<ContactFirstName>Bruce</ContactFirstName>
<ContactLastName>Wayne</ContactLastName>
<ListOfOpportunity>
<Opportunity>
<OpportunityName>Capture the Joker!</OpportunityName>
<CloseDate>04/10/2011</CloseDate>
<Priority>High</Priority>
<Status>Pending</Status>
<SalesStage>Selected</SalesStage>
</Opportunity>
</ListOfOpportunity>
</Contact></ListOfContact></ContactWS_ContactInsert_Input></soap:Body></soap:Envelope>

Similar Messages

  • How do I read & update email group subscription status for a specific contact via api?

    Looking at Eloqua's api documentation, I can find out how to update contacts, and even the global subscription flag, however we want to build a page on our custom website whcih allows users to opt in and out of specific email groups (as can be done manually from the contact page / preferences tab)
    I cant find the appropriate api documentation for this - I found a page for contacts:
    REST API - Contact Fields
    and a page for email group:
    REST API - Email Groups
    any idea how can I find and udpate the object linking the two ?!?

    Via REST API, the bare bones call is:
    PUT /API/REST/2.0/data/contact/{contactid}/email/group/{groupid}/subscription
      "type": "ContactEmailSubscription",
      "contactId": "3174",
      "emailGroup": {
      "type": "EmailGroup",
      "id": "15",
      "depth": "minimal",
      "name": "Test Email Group"
      "isSubscribed": "false"
    Where isSubscribed can be toggled to true. This is the same call made by the UI when you open the contact record, move to the preferences tab and right click to subscribe or unsubscribe on an email group:
    The list of email groups and their ids can be obtained via GET /assets/email/groups. I recommend adding ?depth=minimal to avoid retrieving unnecessary configuration information.
    Best regards,
    Bojan

  • Need Help Writing Server side to submit form via API

    Hey
    I need help writing a serverside application to submit
    information via API to a separate server.
    I have a client that uses constant contact for email
    campaigns. We want to add to her website a form taht submits the
    information needed to subscribe to her email list, to constant
    contact via API.
    FORM.asp :: (i got this one under control)
    name
    email
    and submits to serverside.asp
    SERVERSIDE.ASP
    In serverside.asp i need to have
    the API URL
    (https://api.constantcontact.com/0.1/API_AddSiteVisitor.jsp)
    username (of the constant contact account)
    password (of the constant contact account)
    name (submited from form.asp)
    email (submitted from form.asp)
    redirect URL (confirm.asp)
    Can anyone help get me going in the right direction?
    i have tried several things i found on the net and just cant
    get anyone to work correctly.
    One main issue i keep having is that if i get it to submit to
    the API url correctly - i get a success code, it doesnt redirect to
    the page i am trying to redirect to.
    ASP or ASP.NET code would be find.
    THANKS
    sam

    > This does require server side programming.
    > if you dont know what that is, then you dont know the
    answer to my question. I
    > know what i need to do - i just dont know HOW to do it.
    If you are submitting a form to a script on a remote server,
    and letting
    that script load content to the browser, YOU have no control
    over what it
    loads UNLESS there is some command you can send it that it
    will understand.
    No amount of ASP on your server is going to change what the
    remote script
    does.
    http://www.constantcontact.com/services/api/index.jsp
    they only allow their customers to see the instructions for
    the API so i
    can't search to see IF there is a redirect you can send with
    the form info.
    But posts on their support board say that there is.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Get rid of opportunity link in create section

    In the action bar we have create section, I want to get rid of opportunity link in the create section with out taking away create opportunity access. I want a certain roles still have access to create opportunity from a lead or contact record but not from create section.
    Bharat

    Your request is not possible today.
    However, if your goal is to make sure that new opportunities can only be created from contact or lead record, you probably want to ensure that the primary contact is populated (just guessing). You could put validation expressions in Primary Contact ID field:
    [<KeyContactId>] &lt;&gt; "No Match Row Id"

  • Can I Create A Symbolic Link to folders stored on an SMB Share folder?

    Hello,
    I am very new to Unix and was hoping that someone could point me in the right direction with regards to Symbolic links and an SMB share folder ....
    Have purchased an ext. LAN Drive enclosure (http://www.macpower.com.tw/products/hdd3/pleiades/pd_usblan) which connects to my wireless router via ethernet like my G5 (main Mac) - our iBook connects via Airport. I have copied all my general documents/files to the SMB share folder on the ext. drive so that I can access them from the G5 and also the iBook.
    However I'd also like to be able to store my actual Mail folder (/Users/Mark/Library/Mail/), , Safari folder (/Users/Mark/Library/Safari) + my Address Book and other folders sitting in the Application Support folder on my SMB share so all important docs/folders are in the one place. I've tried storing these folders on the SMB share and putting an Alias to these back in Users/Mark/Library/Mail etc but of course an Alias doesn't work.
    Question 1: Can I create a symbolic link to these files if these are stored on an SMB share folder? If so, could you please tell me exactly what I'd need to type into Terminal? My SMB Share path is smb://STORAGE-XXXX/MARK
    I have copied my iPhoto library and iTunes library to the SMB share and are working fine.
    Question 2: Is it possible/worth attempting to move my whole home folder to the SMB share folder? Ideally, I'd like to be able to access my Mail from the iBook as well. If I could log into either the G5 or the iBook and access my latest Mail, Address Book and other Application Settings, that would be perfect. Would this be possible?
    Thanks
    Mark.
    Dual 1.8GHz G5 (Rev.B), 2Gig RAM, 9600XT   Mac OS X (10.4)  

    Dear Mark,
    Yes you can. The command to create a link will look something like this:
    $ ln -s thisFolder /Users/mark/thatFolder
    I did this while I was hosting a microsoft based game. This put all of the players into a common directory.
    SMB just resolved the link and everything worked fine.
    However, as I understand it, some other applications do NOT work very well with links. As I have NOT tried it with other applications, I fear I can be of NO help to you in this matter.
    The only way to find out which applications work with links is to try them and see what happens.
    Best of luck,
    Kurt

  • How do I create a downloadable link from an Interactive PDF file created out of InDesign CS6?

    Hello,
    I created an Interactive PDF file out of InDesign and would like to make the large file a downloadable link and share it with the user in an email. I do not want to use DropBox or GoogleDrive.
    The company I contract for has their own site - do I insert the file into the site or can I create a separate link for it?
    I will be recreating these presentation PDF's constantly, so I would like to know if there is a simple way to create this link for files in the size of 7-12MB.
    Any ideas on downloadable links? I do have flash - but rarely use, perhaps load the file out of flash?
    Thank you so much for your help,
    Megan

    Hi Willie,
    Thanks for your help. Most likely contact the company who maintains the
    site then to share the file with them I'm assuming?

  • Creating a database link to another schema in the same database

    Hello,
    I'm trying to create a database link to another schema in the same database. It was created without errors, but when I try to use it I receive "ORA-12154: TNS:could not resolve the connect identifier specified" message...
    I'm trying to do it because on my production enviroment the databases are separated, so there I can use database links without problem, but in my development environment it's all in one database separated by schemas...
    So I'm trying to simulate the same system to not need to rewrite the query every time I move from development to production environment.
    Any ideas?
    Thanks

    Hi,
    Yes, you can create a database link to your own database. I've done it before for exactly the same reason you want to.
    (By the way, I think it's a good reason. What are the alternatives?
    Having different versions of code for Development and Production? Absolutely not! Terrible idea!
    Using synonyms or substitution variables that are set differently in the different databases? That might be more efficient than a database link, but efficiency probably isn't such a big issue in Development.
    [Conditional compilation|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/fundamentals.htm#sthref250]? This might be good; it has all the efficienty of the above options, with more clarity.)
    Assuming you do want to stick with a database link, not all errors are caught when you create the link.
    Is the Development database in the tnsnames.ora file of the Development server? Do you have other database links, either in the Development server or pointing to it, that work? What is different about the ones that work, and the one that doesn't?
    Edited by: Frank Kulash on Oct 14, 2009 1:58 PM
    The more I think about this, the more I agree with the earlier respondent: synonymns are a good solution for this.
    To that suggestion you replied:
    On this way I might use "select * from SCHEMA.table" instead of "select * from table@SCHEMA"... I looking for an option to use the second way...Actually, the suggestion was that you say:
    select  *
    from    SCHEMA_table_ptr;where schema_table_ptr is a synonym.
    In Development, that synonym is defined as schema.table.
    In Production, that synonym is defined as table@SCHEMA
    Why are you "looking for an option to use the second way"?
    If you think that people reading the code should realize that the query is being done via a database link (at least in Production), then add a comment.

  • How to access a Plan created in Enterprise Link Design Studio

    I have created a Plan in Design Studio of Enterprise Link and i would like to put it in a report which i am planning to create using BAM active studio. Can some body tell me how to access things created in Enterprise Link from active studio/architect.

    hi
    You have to create a plan to connect to the external message source, get the message and parse , and finally put it in the ADC data object (user created object). After this step, all your incoming messages will be in ADC data object. Only after getting the message into ADC object, you can use this object - you can create reports using this object.
    I have a few questions
    a) Can you identify your company. b) Have you taken the BAM training course c) These steps are given in training documents in lab 2-6 step by step.
    Do let me know if you need any help, contact directly at [email protected]

  • Contact photos are not showing up in Mail message list, even though the message will link to the contact card in Address Book with the photo in it.

    I'm using Mail 5.3 and Address Book 6.1.3 on X 10.7.5. I want my contact photos to show up in the message list on Mail, but only some of them do, even though the message will link to the contact card in Address Book with the photo in it. I've even tried replacing a photo that doesn't show up with a photo that does show up for a different contact but no luck. I am syncing to one other Mac, an iPhone and an iPad via iCloud.

    I'm using Mail 5.3 and Address Book 6.1.3 on X 10.7.5. I want my contact photos to show up in the message list on Mail, but only some of them do, even though the message will link to the contact card in Address Book with the photo in it. I've even tried replacing a photo that doesn't show up with a photo that does show up for a different contact but no luck. I am syncing to one other Mac, an iPhone and an iPad via iCloud.

  • Create a database link to access SqlServer 2005 view from oracle 11gr2

    Hi All,
    Greetings for the day.
    Though I have seen quite a few posts but just wanted to cross-verfiy and double check hence posting.
    Oracle Database : 11gr2
    OS :SOLARIS SPARC 64 Bit
    SQL Server Database : Sql Server 2005
    OS : Windows 2003 32 Bit
    The requirement is to access a view residing in the SQL Server 2005 Database using the Oracle Database. This involves creation of a Database link in the Oracle Database to access the SQL Server.
    Can you suggest which approach should i follow ( I am able to understand that both do the same job ):
    How to Configure DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) post install [ID 562509.1]or
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install [ID 561033.1]Will they do the same job ? And can they be used on any OS and version of the SQL Server Database as version information for SQL Server is not specified anywhere?
    Please let me know so that I can it forward with Business for approvals and budgetting.
    Regards
    KK

    Your question is similar to the post: Oracle 11gr2 connection to Sql Server using dg4msql problem
    Please visit: http://stackoverflow.com/questions/4658942/oracle-11gr2-connection-to-sql-server-using-dg4msql-problem
    Answer on the website:
    You seem to be using the Gateway for MySQL set-up rather than the Heterogeneous Gateway (for ODBC connections). Here is an overview of the process
    On SQL Server create a database user and give it read access to the database/tables you want to read via the Oracle database link.
    In the gateway home each SQL Server database you want to access should have an init.ora located in $OH/dg4msql/admin in the form initsid.ora where sid is the name of the database to be used in the link (e.g. initbob.ora), so create one
    HS_FDS_CONNECT_INFO=msserver1:1234//Example_Database
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_TRANSACTION_MODEL=READ_ONLY
    You must now add the new sid to the listener.ora in the gateway home using an additional SID_DESC section inside the existing SID_LIST, for example
    (SID_DESC =
    (SID_NAME=bob)
    (ORACLE_HOME=/oracle/gateway/product/11.2.0)
    (ENVS=LD_LIBRARY_PATH=/oracle/gateway/product/11.2.0/dg4msql/driver/lib;/oracle/gateway/product/11.2.0/lib)
    (PROGRAM=dg4msql)
    You should now stop and restart the gateway listener so that the new sid becomes active. NB a reload is not enough.
    You must now add the new sid in the tnsnames.ora file for the listener of each database in which you will create a link. You don't need to do this in the gateway home unless it is also a database home in which you will create a database link.
    bob =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = severname.example.com)(PORT = 1690))
    (CONNECT_DATA = (SID = bob))
    (HS = OK)
    NB: The host and port are for the gateway not for the SQL Server database
    In each database that requires a link to the MS-SQL database you should create a database link to your new gateway sid.
    CREATE PUBLIC DATABASE LINK bob
    CONNECT TO "ms_user" IDENTIFIED BY "ms-passwd" USING 'bob';
    where ms-user and ms-password are the SQL Server user you created right at the start.
    Now you can test the new database link
    SELECT COUNT(*) FROM "Table_Name"@bob;
    Once you have this working you can alter the initsid.ora file to add parameters to suit your connection. If you do it this way you can easily add and manage many different databases via the gateway.
    Hip
    Edited by: 1000595 on 04:58 17-04-2013

  • Re-using Segments Created via API or Re-creating Every Time?

    Hi All,
    Wanted to get your thoughts on this...
    We have been able to create Segments via the API, however, which way to go:
    OPTION 1: Re-use Segment if there are no additions or deletions (changes) to the list? or
    OPTION 2: Re-create the Segment every time via API.
    In Option 1, we will still need to compare the existing list to the new list before deciding to re-use. However, the comparison will be done outside of Eloqua.
    In Option 2, we may create a new list even though there are no changes but we will have the historical data and it will be easier to identify lists.
    In both scenarios, data processing may affect performance.
    For those who have done this or are familiar, what would you recommend?
    Hope it's clear.
    Pinging: TJ Fields-Oracle, 1065474, freejung
    Thanks!!

    In simpler terms of creating assets and storage, creating new segments each time should not be a problem. That said, the asset choosers might end up being slow if you're blowing past 100k which will ultimately result in a poor user experience for the marketers. Please see:
    Eloqua Product Thresholds
    Beyond that, you should also consider:
    - Developers creating a process where segments and campaigns are being created automatically, and the campaigns being left active for a long time with segments are set to run every hour. For static lists, it wouldn't really result in heavy calculating but you can run into delayed contact entry into campaigns if you have hundreds of segments feeding hundreds of campaigns - each with heavy filtering. At best it would be pointless to run segments (on the canvas) hourly if the lists are static, and at worst you're making everything slower. That doesn't sound like a major concern here but something to keep in mind.
    - API tools automatically updating segments which are currently referenced in live campaigns (again, running hourly segments). This means if you re-use assets for new campaigns there is a risk that they're being referenced by a currently live campaign and you end up adding the wrong contacts to the wrong flow. Since segments share a relationship to campaigns as their primary contact feeder, the API tools should only be updating the same segment asset with new contacts if the intent is to add those contacts to an existing campaign.
    - Although keeping shared lists or segments untouched gives you some historical tracking, do not assume the contacts in those assets are exactly the same ones which were used when the campaign was launched. For example, if you delete the bouncebacks and unsubscribes after the campaign has run and go back to your segment, even if it is a simple segment with a local list, it will not contain the deleted contacts. For any serious auditing task, let the API tool archive what contacts were added to what segment. Then you can use Bulk 2.0 activity exports to keep a list of what contacts received what emails from various campaigns.
    Regards,
    Bojan

  • Problem creating a database link

    Hi,
    I tried to create a database link, but it doesn't work. When I connect to the database via SQL*Plus or SQL Developer, the entries in the tnsnames.ora work.
    create database link DBOPBWS2.BAG connect to demo identified by demo
    using 'DBOPBWS2.BAG';
    Entry in tnsnames.ora:
    DBOPBWS2.BAG =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =serv01.server.spub-systeme.de)(PORT = 1485))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SID = DBOPBWS2)
    Entry in sqlnet.ora:
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    select * from [email protected];
    Error:
    ORA-12154: TNS: Angegebener Connect Identifier konnte nicht aufgelöst werden
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    What is wrong with the datbase link?
    Please help me
    Siegwin

    Hi,
    You could also "skip" the TNSNAMES use :Scott@my11g SQL>create database link DBOPBWS2.BAG connect to demo identified by demo
    using '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =serv01.server.spub-systeme.de)(PORT = 1485)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = DBOPBWS2)))'
    Database link created.

  • Creating an email link within a Muse page?

    I want to create an standalone (not within a contact form) email link in Muse. Do I simply highlight an email address within a text box and apply a hyperlink witht the corresponding email address ([email protected])? Or does it need to be a spearate element/text box to do so?
    Thanks, in advance.

    Hello Stephen,
    You can just highlight the email address and put the email address in the hyperlink field. It will hyperlink the email address and when user will click on it, it will automatically open their default e-mail client with an email having the mentioned email id in the "To" filed.
    Regards,
    Sachin

  • How to link follower to contact in Find My Friends?

    In Find My Friends, one of my followers shows up as an e-mail address without linking to a contact.  The 'Add to existing contact' and 'Create contact' buttons are missing.  The weird part, is under 'Contact Info', it shows 'main 2', 'other [email protected]'.  I have a contact with [email protected]  I even added 2 as an email address for that contact with no luck.

    Also, I checked that Find My Friends has access to contact data under Settings > Privacy > Contacts

  • Howto create a dynamic link with current domain

    We need to create a dynamic link on a html page in the portal.
    The link should contain a dynamic part containing the domain where the CLIENT is in. It should look like this : http://mytool.windowsdomain.corp/tool where "windowsdomain.corp" is dynamic. Where could we get this information from?
    Thanks!
    Matthias

    Hi Matthias,
    you could paste something like this in a Custom JSP Component:
    <script type="text/javascript">
         function getServerURL() {
              return top.document.location.protocol+"//"+top.document.location.host;
         function redirect(uri) {
              try {     
                   top.location.href=uri;
              } catch (e) {
                //unfortunately this is not triggered in IE - only in mozilla
                   alert("No valid Redirection-URL could be generated. Please contact your Administrator.");
        redirect(getServerURL()+'/tool'+top.document.location.search);
    </script>
    Best Reagrds, Thomas

Maybe you are looking for

  • Converted apple loops won't add to logic.

    I think others have had the same problem but I just spent hours converting wavs to apple loops and in the end, more than half of them won't even show up in logic. The ones that do show up in the logic loop pane are not "looping" either even though I

  • Can't Completely Uninstall an App That Doesn't Exist Anymore

    Alright, so I've got a very run-of-the-mill, mid-2011 Macbook Air (1.6 GHz Intel Core i5, 2 GB 1333 MHz DDR3, running Yosemite) and everything really does run just fine. The only issue I've been having is completely eliminating traces of a particular

  • Set file position within a for loop, error 1

    Hi, I'm reading from a .sxm file consisting of a large chunk of text followed by binary data for 512x512 images with 4 bytes per pixel I've managed to successfully identify the start of the binary and read the first image from the file and view it us

  • Why can't i put my emails into folders

    why can't i put my emails into folders

  • Re: Qosmio x770-136 - How to watch movies in 3D using VLC player

    Hi I've just got a Qosmio X770-136 laptop. How do i work the 3d? I've got downloaded movies to play through VLC. Am i right in thinking the laptop changes them over to 3D? Mine doesnt seem to be working?