Delete Relationships via API

Can anyone tell me the correct method for deleting relationships within the repository using the API? It seems to me that deleting one end of a relationship would null-out the OTHER_RELATIONSHIP_END_REF value on the other end of the relationship and then the other end would have to be deleted separately but that doesn’t seem to be the case. I have tried to retrieve the other end after deleting the first end and gotten a NO_DATA_FOUND exception. However, if I do not delete the other end then Designer throws an exception regarding a null value in the TO_ENTITY_REFERENCE property of the end I attempted to delete. I have taken steps to ensure the entities on both ends of the relationship are checked-out prior to performing the delete but I do not seem to be able to come up with a combination of deletes that completely removes the relationship.
Any help would be greatly appreciated.

I think I've solved my own problem: deleting one end of the relationship causes the other end to be deleted automatically -- nice.

Similar Messages

  • Purge Deleted Items via API

    I have been looking around for away to programatically purge deleted items off of a page without going through the web interface after say a period of seven days. I searched forums and did find some older references to this becoming a supported feature. I am running application server 9.0.4. Does any one know if this functionality has been created or is planned on the next release(s). I found of course the unsuported package for doing this but would much rather code something that is supported.

    Hmm. Something supported. Hmm.
    How about using a Java Client like HTTPUnit, calling the UI page, and "pressing the button" programmatically? The Java program could also be scheduled for regular execution on the server system, and this would definitly not touch the unsupported portal inside.
    Next question would then be - is it more probable that the UI changes in the next release, or the "unsupported" secret package? Who knows? But hey :) no risk, no fun. After all, developers live to code.
    Just fantasizing, don't take it too serious.
    Regards,
    Felix

  • 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

  • In which table the initial balances will be stored when loading via api

    Hi all,
    I am doing initial balances migration...
    In which table the initial balances will be stored when loading though an api.. (pay_balance_upload.process).
    First I have loaded data in to pay_balance_batch_headers and pay_balance_batch_lines tables..
    Then called the api pay_balance_upload.process. and the data was reflecting correctly in front end.
    But we need to reconcile the loaded data.. for that, can anyone please tell me in which the loaded balances would be stored..
    I have identified two tables, pay_assignment_latest_balances
    and pay_latest_balances
    when I try to create a balance from frontend I can see the data in pay_latest_balances table..
    But when I load via api I am not able to find it in any of these tables..
    In addition to that can anyone please tell me when the data will be populated in pay_assignment_latest_balances and pay_latest_balances tables.
    Awaiting for your help and quick response..
    Thanks and Regards
    Kishore

    You have followed the correct process..As Vignesh said, you can use pay_balance_pkg.get_value to make sure you have the correct values uploaded but otherwise if you are able to see the values in the front end I wouldn't worry about the latest balances tables. These tables, as the name indicate, hold only the latest values and if a payroll (ran post the initial balance upload) has been rolled back, these are deleted since they are no longer available.
    You can refer the below Metalink notes for a detailed explanation:
    The Secret Life of Initial Balance Upload with Screenshots Example [ID 60057.1]

  • How to Link an Alternative Payee to a Supplier via API - R12

    Hi,
    I want to know how to link an alternative Payee to a Supplier via API.
    Below is the business scenario which we require,
    Supplier Creation:_
    Vendor Name: Supplier A
    Site1 : SITE 1
    Site2 : SITE 2
    Supplier Relationship Creation:_
    Relationship is set to for 'Supplier A', SITE2 with
    Remit To Supplier Name : Supplier A
    Remit To Supplier Site : SITE 1
    and marked as Primary.
    Invoice Creation:_
    Invoice Num: Tst_Inv_1
    Tst_Inv_2
    Tst_Inv_3
    Tst_Inv_4
    Scenario:_
    Before creating the relationship between SITE1 & SITE2,
    The payment for Invoice 'Tst_Inv_1' created under SITE 1 is made to SITE 1 as expected.
    The payment for Invoice 'Tst_Inv_2' created under SITE 2 is made to SITE 2 as expected.
    After creating the relationship between SITE1 & SITE2,
    The payment for Invoice 'Tst_Inv_3' created under SITE 1 is made to SITE 1 as expected.
    The payment for Invoice 'Tst_Inv_4' created under SITE 2 is made to SITE 1 as expected as the Remit-To Supplier name and Remit-To Supplier Site is set 'Supplier A' and SITE 1.
    Is there anyway to achieve this scenario via API.
    I found one API (IBY_EXT_PAYEE_RELSHIPS_PKG) which will just tell whether any relationship is existing between those two suppliers, But not to create new relationships.
    Regards,
    Mano Pratheep

    Hi,
    Creat the following internal table
    DATA: i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    Pass the values to this internal table as follows
    i_reclist-receiver = '<give ur mail id>'.  "SAPoffice: Name of the recipient of a document (also ext.)
    i_reclist-rec_type = 'U'.                              "Specification of recipient type
    *U = INTERNET ADDRESS,
    *B = SAP USER,
    *P = PRIVATE DISTRIBUTION LIST,
    *O = SAPOFFICE USER,
    *R = SAP user in another SAP System
    *X = X400 ADDRESS
    *C = SHARED DISTRIBUTION LIST
    APPEND i_reclist.
    Pass the internal table to the Tables parameter of 'receivers'
    receivers = i_reclist
    Regards,
    Chandu

  • Wher is deleted relationship history log in ServiceManager production database?

    Hi,
    I`m trying to use ServiceManger production database directly to track changes of reassigned users.
    I`m able to get all relationship changes from EntityChangeLog, but those changes that represent "removed" user in history log (as seen in console on reassignment you have Remove for old assignee and Add for new one) do not have a matching record when
    searched by RelationshipId in the dbo.Relationships table. Although the last added user from the entire history of SR can be tracked via that table and that relationship (active one) has matching record in dbo.Relationships table
    It means that somewhere in the ServiceManager DB there is separate table for deleted relationships where I can find the ones that are in History referenced with action "Remove"
    Question - which table is it? Or the structure is different and I`m not getting something right?
    Egils Zonde from Technet

    directly accessing the SQL database is
    discouraged, and SDK or console access is always prefered. The structure is not intended to be human readable, and the results of any direct SQL read are sure to be unsupported.  it'll probably work great, but I wouldn't design a process
    around it, since it was never supposed to work in the first place no one will help you if it breaks.
    as Raymond Chen likes to say,
    It looks like you have half of a problem here, (i.e. you've already figured out that you need to cromulate the franbulator, now all you need to do is invent a method to cromlulate arbitrary franbulators). What is the real need? is this an auditing
    need, like need to provide a history of deleted relationships to external audit? Or do you need to react to a relationship being deleted, and building a history seemed like the first step?  

  • How to populate Values in Value Set via API or Interface

    Dear frds:
    i need to know is there any API or interface available to load thousands of values in particular valueset via API or Interface. I know Dataload is the alternative but i don't want to use that as the data is too much so its not feasible.
    waiting for your response
    Thanks.

    There is no API for fnd_flex_values.
    You will have to do a direct table insert (or call FND_FLEX_VALUES_PKG which does nothing but a direct table insert).
    Sandeep Gandhi

  • Open saved draft report via API/UI

    How could I open an saved Draft report via API/UI.
    I have draft an report via API/UI and now I would show this report on Desktop/SAP

    Sorry for my mismatched formulation of this problem
    I would open it via code
    z.B. application.forms.items("")
    because I get the Docnum of my before safed draft but It wouldn´t shown at the SAP now so I have to open it via code gg
    but also thx to you

  • How to delete PSAs via process chain

    How to delete PSAs via processchain using program(need to delete automatically).
    For that i have to create the processchain for specially deletiung the PSAa and need to write the code for deleting automatically.

    Hi
    Please follow the below steps for PSA processchain deletion.
    Create the Start varint
    Drag the PSA deletion PSA Request from left menu bar proces types
    Click on maintain varinat of the above dragged psa deletion
    There you select like below
    Object Type:PSA
    Objectname:PSA Table name
    Select the below options on the same screen as Older than 10 days ...
    As per your requirement you can select the options..
    Hope it will helps

  • TS2755 Hi All - I sent a text using my iphone 5 - It is PAYG and had no money in it. It tried to send as an SMS but gave the 'green button reject message'. After deleting the convo, the phone keeps trying to send the deleted text via SMS and wont stop not

    Hi All - I sent an sms using my iphone 5 - It is PAYG and had no money in it. (stupidly)
    It tried to send as an SMS but gave the 'green button reject message'.(no money)
    Step 2 in this stupidity - the phone keeps trying to send the deleted text via SMS and wont stop notifying me of this. Totally ruining the functionallity of my phone, and more so totally annoying. All I want to do is stop the constant re-trying of sending the deleted SMS.
    Any ideas?
    Many Thanks!

    Hi, many thanks for your help - Pressing and holding sleep/reset hasn't worked, the msg is still continually reporting it is failing to send. I can restore to a previous version however I'll lose my paid apps. Is there any way to work around this. I'm only concerned about one app - Epocam HD which I purchased last month. My last backup on PC is 4 March 13 - before I bought the paid app - Itunes advises me I'll have to re-pay to get my apps (app) back. Even though it advises that icloud backed up this morning at 1:30 am (which although it is before the text, I cannot manually select this restore).
    What a mess!

  • How to Get a Resource Id via API

    Hi,
    Is there any way to get the short id associated with a resource via API??
    I need to get an Id from a resource that it's unique for every one, so I can show an identifier for every document in a custom report...
    Thank you,
    Felipe Vieira

    Hi Valery,
    I mean a Portal Resource..
    Inside portal, when a go to properties  of a specific document, in tab "Access Link" it shows a "Short Id".
    I'd like to know via API how to get this Id, or any other Code that it's unique for every resource or document in portal.
    Thank you!

  • Process AR Receipts via API

    Dear Friends,
    I have below few querys related to AR Receipts process via API.
    1)     Can we change the receipt status (APPROVED  CONFIRMED REMITTED  REVERSED/ CLEARED) through any API? Any one can explain how it is happening in real world?
    2)     Can we change the receipts accounting through any API. I want to mean here, the receipts GL accounts are defaulted from Receipt Method & MISC receipt activity (in case of MISC receipt). Can we change those defaulted accounts through any API?
    3)     In case of MISC receipt can we populate the “Paid By” field thought the MISC receipt creation API?
    Thanks & Regards
    VB

    Hi Muktech,
    Currently there is no API for BPM 11g. There is an API for the human task but this will not be sufficient for completing a process activity.
    Hope this helps.
    Kind Regards,
    Nils

  • Problems in deleting relationship in PO13

    Hi,
    I am facing a problem when performing following steps. Please give you valuable comments regarding any solution.
    Step1: sm30 Payroll Period & Year - Verified values
    Step2: PO13 Clear position for Transfer , go to maintain position
    In this step under Current Plan and a current period, I am selecting the Relationships option. Then I have selected Delete Infotypes. Then, Screen: Delete Relationships Delete
    Error : Change for person xxxxxx extends too far into  past.
    The Diagnosis is :
    You are working with active integration between the PD and the HR Master
        Data Management. You must consider the effects of your transaction on  
        Human Resource master data.                                            
        The entries cannot be updated because, otherwise, it would be necessary
        to make changes for the specified personnel numbers, which date too far
        back into the payroll past.                                            
        The earliest retroactive accounting period for the payroll subunit to  
        which the person belongs is defined in T569V. The earliest personal    
        retroactive accounting date is read from infotype 0003. The more recent
        of these dates is determined.                                          
        Only changes which occurred AFTER this date can be carried out.
    Please assist me regarding what steps need to be followed for resolution.
    Regards,
    Prasun Podder

    Hi Akshay,
    Thanks a lot. This is a good option. But in this situation, I will not be able to able to use the program RPUTRBK0 as the 'Earliest RA Date' should be prior to the 'Earliest Masterdata Change Date' which is different for different Pnr. No.
    So, I am actually thinking of putting the Earliest RA Date as the Date of Joining of the employee and for this have to run the LSMW.
    Any suggestion from your side is appreciated.
    Thanks & Regards,
    Prasun Podder

  • Accessing the password store (PSTORE) via API

    After having created portal users via API srcipt, we now would like to register users
    for an external application programmatically.
    I.e. we have a portal user and we know his account info ( user / passwd ) for the external application. Portal seems to store account infos for external applications in a "Password Store". So i am looking for an API to register portal users for external applications providing the known acount info,
    i.e. sth. like
    PSTORE.InsertExtAccount( PortalUser, ApplicationName, ExtUser, Extpasswd).
    I had a look at http://www-sso.us.oracle.com/
    but could not find API description or any hints when an API like that will go production.
    Can anyone help me with that issue ?
    Thanks a lot.
    null

    This is probably the wrong forum for this question - I would try the 9iAS Portal forum.

  • Creating worksets via API

    Hi all!
    Is it possible to create and change worksets dynamically via API? I have found documentation how to read pcd objects and their properties but not how to edit pcd objects:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
    best regards
    Michael

    Hi Michael,
    (1) To change workset attributes, get the IPcdContext object for the workset, then do something like this:
    ModificationItem[] mods = new ModificationItem[1];
    mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,new BasicAttribute("com.sap.portal.navigation.MergePriority", new Double("75")));
    myPcdContext.modifyAttributes("",mods);
    (2) To create, you could simply bind a new context to the folder you want to place the workset, and set all the attributes (most important, object class and name). This is a little tricky, and there may be side effects I haven;t thought of.
    For iView, you would use the IiViews semantic object to create the iView, and this object would take care of almost everything for you. But there is no workset object.
    Hope this helps.
    Daniel

Maybe you are looking for

  • IPhone 3G played through MINI iPod Adapter on Saturday; however, on Sunday

    I have a BMW adapter in the glove compartment of my MINI Cooper S 2003. It was installed by the factory. It worked with my iPod photo, my iPod Touch, and my iPhone 3G on Saturday. Today it stopped working. It may have not charged the iPhone 3G on Sat

  • Best practice for images. Air for Android

    Hey guys... I was thinking about the best solution when it comes to images storage for Air on Android. Since I dont have much experience with non-web based apps, I thought of two way and I would like to know your thought on them. 1.Application Storag

  • Vibration not working in silent mode

    Vibration not working in silent mode

  • 8mm and Canopus or Digital 8 for capturing 8mm tapes?

    I have a Canopus 300 that I've been using for capturing VHS tapes. I also have an 8mm camcorder. Will that camcorder + Canopus do as good a job as a Digital 8 camcorder or Digital 8 playback deck? Thanks! MikeR

  • Help in setTimeout function

    I want to pass the argument in the function called in setTimeout function. Below is the code snippet. public function histogramDataPointClick(dataPointObj:Event):void var duration:Number = 5000; setTimeout(executeEvent(dataPointObj),duration); public