Is it possible to delete a relationship using sdk in SCSM ? if yes how ?

Is it possible to delete a relationship using sdk in SCSM ? if yes how ?
If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT

Yes, you can use the SDK to remove relationships. Use the EnterpriseManagementRelationshipObject class. You can use the EnterpriseManagementGroup.EntityObjects.GetRelationshipObject* methods to retrieve collections of relationships or individual relationships.
Then you can use an IncrementalDiscoveryData object to remove the relationship objects.
Another method is to use an EnterpriseManagementObjectProjection to remove relationships between objects.
Here's a blog post with the basics:
http://blogs.technet.com/b/servicemanager/archive/2010/10/04/using-the-sdk-to-create-and-edit-objects-and-relationships-using-type-projections.aspx
Removing/Adding activities programatically is not as straight-forward as it might seem. Each activity has a "SequenceId" property. Activities MUST remain in sequence or the workflows will give you unexpected results. For instance, if you delete
an activity, for each activity that follows you must decrement its sequence id property. Similarly, if you add an activity, you must make sure that it's sequence ID falls in the proper order with the other activities (incrementing other activities as needed).
As a side note, BOVI Remy, the SDK is the primary entry point to the framework of Service Manager. The powershell cmdlets lay on top of the SDK. In other words, the cmdlets were created with the SDK. The cmdlets provide an abstraction layer to
make many SDK calls simpler. Basically, anything you can do with Powershell cmdlets, you can do with the SDK. Plus, there's even more that the SDK can do that you can't do with the Powershell cmdlets (currently). :)

Similar Messages

  • Is it possible to delete a relationship from the BP ?

    Hello experts,
    I'd would like to replace a function partner SH (having the same number as the DO) by another  from R3 to CRM5.
    At the begining i have in R3 this partner
    AG 3901007
    RE 3901007
    RG 3901007
    WE 3901007
    In R3 by the transaction VD02, I replace the partner SH by another
    After the modify i have in R3.
    AG 3901007
    RE 3901007
    RG 3901007
    WE 5000000
    When the replication is done in CRM using BDOC, i can see, by the transaction BP
    the new ship to party partner(5000000) .
    The trouble is :
    When customer access to ISA (standard version) to order product, he can select the partner 3901007 as shipping adress.
    By ISA, he should have the partner 5000000 only.
    Is it standard or is it a sap trouble ?
    Is it possible to delete a relationship from the BP ?
    I don't want to delete the BP partner, i just want to delete the relationship when then BDOC arrive in CRM.
    i have found the oss note 596334 497146 757955 too but it doesn't bring me a solution.
    Best regards
    Christophe

    Hello
    When you delete a Partner Function in R/3 the corresponding relationshipdoesn't get deleted in CRM. This is standard SAP behavior and not a
    bug. Reason for this behavior has been explained in Note 490454.
    You can change this behavior by implementing Note 497146. Also check
    the note 682427 which will help you in clearing old data.

  • Is it possible to call a smartfrom within a smartform? if yes how ?

    Is it possible to call a smartfrom within a smartform? if yes how ?

    Calling or embedding?
    It is not possible to embed a smartform into another one (like subscreens within dynpros)
    For calling, I don't know, but I wouldn't try

  • Can I used cam in yahoo ,if yes how please

    I would like to now how can used my web cam with yahoo chat

    I'm not sure what you're asking for. The Bugzilla API is a RESTful API. It's documented here: [https://wiki.mozilla.org/Bugzilla:REST_API]
    This means that you don't install anything on your windows machine. You just have to send the right commands to the bugzilla server (please use the testing server to try things out) and the server will respond with your data.
    To make this easier, you can use any REST module/library that your coding language of choice supports. For example, if you're using python, try [http://code.google.com/p/python-rest-client/ this one]; Perl: [http://search.cpan.org/~mcrawfor/REST-Client-88/lib/REST/Client.pm this one]; for Javascript, jQuery has the [http://archive.plugins.jquery.com/project/Rest JSON-REST plugin].
    If you just want infrequent access to Bugzilla, honestly, the easiest way is to go to bugzilla and search. The BzAPI is really designed for automated services to get data from Bugzilla.

  • Is it possible to delete a running background job programatically?

    Hi Gurus,
    is it possible to delete a running background job programatically? if yes how can we do that?
    Thanks in advance

    Or as sais by Sandeep you can use that fm.
    Before calling that select the required data from table TBTCO and pass to the fm.

  • Is it possible to delete a song from 5th generation Ipod?

    Hi All
    Is it possible to delete a song from 5th generation Ipod, if so, how can this be done?

    Connect your iPod Nano to your computer.  Go into iTunes & click on Music or your playlist under "Devices." 
    Delete the songs from iTunes.  Once deleting is done, eject your iPod Nano.
    Check out the following thread:  http://discussions.apple.com/thread.jspa?threadID=2276586

  • Is it Possible to delete workitems in the UWL Inbox?

    Hi All,
    Can we delete workitems in the UWL inbox?
    Please let me know.. we have two types of workitems ., one comes from workflows and another from Guided Procedures.
    i have added delete action in the UWL XML file and tried deleting the workitems but i got the message..
    "Unable to perform the request. Try again and if the problem persists, inform your system administrator"
    and also this action button is visible only for Guided procedure workitems.
    Please help me..
    is it possible to delete the workitems in the UWL inbox? then how? is there any documents?
    if it is not possible then why they have provided "Delete" action?is there any supporting documents or SAP Notes for this..
    Regards
    Vijay

    hi
    Please run the report in r/3 to delete the workitem.RSWWWIDE.
    To delete the GP items
    Step 1: Select the process template.
    GOTO: Guided Procedures >> Administration >>Archiving and Deleting >> Maintain Process Templates >> Process Template Settings
    Click on u201CBrowseu201D
    Select the Process Template
    Click on "Choose"
    Step 2: Specify a schedule.
    Make sure the previously created Template setting is selected.
    Select u201CSpecify Custom Settingsu201D
    Select the appropriate intervals for removal of processes.
    Step 3 Schedule a task to run daily and perform our desired deletion setting.
    GOTO: Guided Procedures >> General >> Schedule Tasks >> Select u201CTask Archiving and Deleting.u201D
    Click on "Create".
    Mention the schedule required,
    Preferably
    Type: Recurrent Daily
    Time : non productive hours [after midnight]

  • Set value of System Matrix Form using SDK

    Is is possible to set matrix value using SDK of user defined form. Plz forward code for same.

    Yes it is possible. You need to get the form and into the form the item, cast it to a matrix and then set the values into it.
    There is plenty of samples you can use to learn about UI API. You can download them directly from SDN.

  • Is it possible to delete bank details in Mantain Insurance Relationships Proposal Pool?

    Hello,
    We are on SAPK-60614INISH (SAP healtchare Support Package 14)
    is it possible to delete bank details in Mantain Insurance Relationships Proposal Pool?
    In Mantain Insurance Relationships Proposal Pool, there is no button to erase bank details
    It is easier for the user to delete bank details in Mantain Insurance Relationships Proposal Pool than in FD02 Change
    Thanks in advance
    Best Regards

    To the best of my knowledge, not on an unjailbroken phone using the stock Messages app.

  • Is it possible to delete message in the server using Mail configured using IMAP?

    Is it possible to delete message in the server using Mail configured using IMAP?
    Currently when I delete the message in Mail, the server still keep a copy of it, which means it is not deleted on the server. I know that POP can do this but I still want the option of being able to access it from other computers.
    My server has only a small size, so I hope that I can just delete it from my Mail instead of having to log in to the server and delete it again.
    Thank you.

    yxchng wrote:
    Is it possible to delete message in the server using Mail configured using IMAP?
    Yes, but doing so will remove it from everything else.

  • Is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?

    As per the title is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?
    We have a case where very rarely an item might have been miscategorised so the brand is manually changed.  We want this dimension to be rigid to speed up ProcessUpdate.
    We do a ProcessFull each night, so it will get corrected then, but during the hourly updates we would just like to ignore this error if possible?

    Hello,
    The rigid relationship should be defined when the members will not change over time. Here are some threads regarding rigid relationship for your reference, please see:
    Processing OLAP Cube: http://social.technet.microsoft.com/Forums/sqlserver/en-US/17a55593-9543-404e-a579-0a011965585d/processing-olap-cube?forum=sqlanalysisservices
    Flexible and rigid relationship: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d8f5443-065d-4485-9385-6f0b5fa417da/flexible-and-rigid-relationship?forum=sqlanalysisservices
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Is it possible to delete off the desktop I will be using this phone for business, therefore I will not need itunes, appstore, game centre, weather, newstand, passbook, stocks, maps, camera, music etc. please advise.

    Is it possible to delete off the desktop I will be using this phone for business, therefore I will not need itunes, appstore, game centre, weather, newstand, passbook, stocks, maps, camera, music etc. please advise.

    The App Store has many useful business related apps: Word processors, spreadsheets, presentation apps, CRM apps. Maps is useful for navigating to appointments. Newstand for reading periodicals related to business.

  • Is it possible to delete files from time machine?

    Is it possible to delete files from time machine? I had a drive crash, restored the files to a new drive, and now the old versions and the new versions of the files are both backed up, taking up a mountain of drive space. Do I just have to wait 'til the drive gets full and then tell it what to delete first?

    Hi, I need help in a related problem. I have 500gb time capsule. I needed larger hard drive, so I now use TM to back up to a different 1tb hard drive. So I don't need the TC as a TM back up device. But I want to use the TC's hard drive as an extra external hard drive. I deleted the files that were on it. but it still shows it has a sparsebundle file with a size of over 400gb ( probably the size of the old backups). When I use disk utility to try to erase it, I am not offered the erase tab. This "disk" does show on the desk top as a mounted disk (I think) with only 53 gb free. How can I set this up so all the disk space is free and I can use it for storing files, not as a back up? Thanks

  • When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can use my ID, which is in Mail, Contacts etc. The ID I get, I can't find, so that I can delete it. What to do?

    When I try to buy something, I get an Apple-ID which is not the one I want to use, and I don't know how to get rid of it either, so that I can replace it with my ID in Mail, contacts etc. The ID I get without wanting it, I can't find anywhere. I have to delete it. How do I solve this problem, anyone?

    My content was obtained through another ID, which popped up earlier. Now this one doesn't pop up, and my current ID doesn't pop up either, but another one. How do you find an ID which is not in the store, and not in Mail, contacts etc. either?
    Or is it possible to write the ID yourself when you want to buy something, not only to have it popped up being unable to be changed?

  • I can't connect to my MacBook becaus it won't boot. Then my iPad says I need to delete some stuff to be able to download any.thing. I know I have room but is it possible to delete without connecting?

    I can't connect to my MacBook because I can't get THAT to start. It just sits in it's blue screen With the apple, spinning it's gear. All this happened after I used mackeeper. If anyone can help with that, I'd appreciate it. I've tried starting in safe mode,resetting everything but nothing happens. It's not the kernel, ive delt with that  it looks like it's going to boot but it won't.  Then there's  my iPad which says I need to delete some stuff to be able to download anything. I know I have room on there but there are 2copies of a movie and I'd like to delete one of them.  Is it possible to delete anything on the ipad without connecting to MacBook?  I do have an appt later in the week but if I could fix this myself that would save me a couple hours driving time. Thanks for anyone's help in both of these matters.

    Be sure Safari does not have the Block Pop-Up Windows preference set.
    Where I work now there are several unencrypted VLANs that require authentication, and Safari promptly pops up a window for me to register every time.

Maybe you are looking for

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell

  • Flash Skin not showing up on website

    Hello, I am having what seems to be a common problem, but am not having any luck with any of the solutions I have tried. I have created a video, gone through the steps in flash cs3, and made the corresponding .swf and .flv files. I publish preview -

  • No sound from ipod shuffle?

    The iPod Shuffle registers on iTune, the downloaded songs show up on the computer screen; however when I attach the ear plugs to the unit not sound emits from the ear phones, not even a hiss. What should be done?

  • Working in 16:9

    I am working on my first 16:9 project and need a bit of help. The project will be running off a DVD and played back on 16:9 plasma screens. I have created all the background elements in Motion at 1280X720. I want to import these into Final Cut and ad

  • Color profiles on export

    I've searched these forums and google for a few hours without finding a concrete answer for this problem. The problem is that, no matter what I do, every jpg I export from iphoto 08 seems to have the Adobe RGB color profile. This is contrary to what