Add Analyst Comment Log to Service Request

I have a new Custom Console Task and i need to create Analyst Comment with Private flag.
This is the code for analyst comment but NOT work please help me
The code:
private bool AddAnalystLog(
            EnterpriseManagementGroup emg,
            EnterpriseManagementObject emoSelService,
            string displayname,
            string id,
            string comment,            
            Boolean flagprivado
            //Get the System.WorkItem.Library mp
            ManagementPack mpWorkItemLibrary = emg.ManagementPacks.GetManagementPack(new Guid("405D5590-B45F-1C97-024F-24338290453E"));
            //Get the actionlog class
            ManagementPackClass typeActionLog = emg.EntityTypes.GetClass("System.WorkItem.TroubleTicket.AnalystCommentLog", mpWorkItemLibrary);
            //Create a new action log entry
            CreatableEnterpriseManagementObject objectActionLog = new CreatableEnterpriseManagementObject(emg, typeActionLog);
            objectActionLog[typeActionLog, "Id"].Value = Guid.NewGuid().ToString();
            objectActionLog[typeActionLog, "Comment"].Value = comment + "\n";
            objectActionLog[typeActionLog, "EnteredBy"].Value = UserPrincipal.Current.DisplayName;
            objectActionLog[typeActionLog, "EnteredDate"].Value = DateTime.Now.ToUniversalTime();
            objectActionLog[typeActionLog, "DisplayName"].Value = displayname;
            objectActionLog[typeActionLog, "IsPrivate"].Value = "True";
            ManagementPackRelationship relActionLog = emg.EntityTypes.GetRelationshipClass("System.WorkItem.TroubleTicketHasAnalystComment", mpWorkItemLibrary);
            EnterpriseManagementObjectProjection emoSR = new EnterpriseManagementObjectProjection(emoSelService);               
            emoSR.Add(objectActionLog, relActionLog.Target);
            emoSR.Commit();
            return true;
Can you help me please?
The error is:
The object could not be added to the combination class beacause the parent is not proper class as specified by the role.
at
Microsoft.EnterpriseManagment.Common.ObjectProjectionHelper.AddChildObject(ObjectProjectionHelper ChildObject)
Thanks

it's fine, i just wanted to make sure i was addressing all of your considerations. I've never had to delete a thread, and i assumed it was a moderator function. the cross link should be enough. 

Similar Messages

  • Field Changes not captured in processing log in service request

    Hi Experts,
    I have activated the processing log for service request in CRM, but I am only able to see the changes done to status,notes,attachments. As the field level changes are not shown in processing log in web ui, but the same is visible in the GUI in change log. Is there any specific setting which I need to do capture the field level changes? Please let me know on the same
    Thanks
    Abishek

    Hi Navin,
    Please navigate to the following SPRO path and update the customizing the field that you display in the processing log.
    SPRO->Customer Relationship Management-> Transactions -> Settings for Service Requests -> Settings for Processing Log -> Define Change History for Processing Log.
    Thank you,
    Regards,
    Mayoo

  • Warning message into Application log of Service request

    Hi Experts,
    I have a requirement where I am using Event handlers(CRMV_EVENT) to redetermine partners of a service request whenever certain values are changed in the transaction CRMD_ORDER.
    Partners will be retrieved from a custom table.
    In any circumstances, if the partners cannot be determined then we need to push a WARNING message stating that "Partners can not be determined, pls maintain the values in the custom table'.
    For this purpose I am using the function module CRM_MESSAGE_COLLECT with the following parameters, but still I am not able to see the same into the Application log of the Service request that is going to be created.
    CALL FUNCTION 'CRM_MESSAGE_COLLECT'
      EXPORTING
        iv_caller_name         = 'ORDERADM_H'
        IV_REF_OBJECT          = iv_header_guid
        IV_REF_KIND            = 'A'
       IV_LOGICAL_KEY         = '0001'
        IV_MSGNO               = '001'
        IV_MSGID               = 'ZSP'
        IV_MSGTY               = 'W'
      IV_MSGV1               = SY-MSGV1
      IV_MSGV2               = SY-MSGV2
      IV_MSGV3               = SY-MSGV3
      IV_MSGV4               = SY-MSGV4
        IV_MSGLEVEL            = '1'
      IV_FIELDNAME           =
      IV_ACTION              =
        IV_LOG_HANDLE          = lv_log_handle
        IV_CUMULATE            = 'X'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Do I missed in passing of any additional parameters?
    Can any one of you have encountered the same problem and solved this, pls through some light on me too(if possible with block of code).
    Thanks in advance.

    Hi,
    Here is the block of code that I used to push a message in to Application log.
    Push your message into a variable called dummy and then call the below mentioned function module.
    DATA:        lv_dummy(254)    TYPE  c,            "#EC NEEDED
              MESSAGE w052(sppf_media) WITH text-001
                                            text-002
                                        INTO lv_dummy.
              CALL FUNCTION 'CRM_MESSAGE_COLLECT'
                EXPORTING
                  iv_caller_name = 'ORDERADM_H'
                  iv_ref_object  = iv_header_guid
                  iv_ref_kind    = lc_ref_kind_a
                  iv_msgno       = sy-msgno
                  iv_msgid       = sy-msgid
                  iv_msgty       = sy-msgty
                  iv_cumulate    = lc_x
                IMPORTING
                  ev_msgty       = lv_msgtyp
                  es_msg_handle  = gv_msghandle
                EXCEPTIONS
                  not_found      = 1
                  appl_log_error = 2
                  OTHERS         = 3.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.
            ENDIF.
    Hope this helps to resolve your issue.
    Regards,
    Usha.

  • Service Request on Person level

    Somehow it doesn't seem possible to log a service request (Telesales or Teleservice) to a person, only to a person that is a contact for an organization. Q: does anybody know if it is possible to create a service request for a person WITHOUT a relation to an organization?

    Yes, it is possible to create a service request for a person party. The customer is Person
    and the contact of the service request is person

  • Create a view - All Service Requests that contain a Completed Review Activity

    In the Service Manager 2012 console, is it possible to create a view that displays Service Requests, with the view criteria being something like as follows:
    Service Request status is In Progress
    Service Request contains a Review Activity where the Review Activity status is In Progress
    My intent is to provide a way for Service Desk Operators to be able to identify requests that are ready for implementation.
    From what I'm seeing in the console, this sort of view is not possible as it appears that any view criteria must be derived from the view's target class.

    Nothing like a bit of thread necromancy in the morning.
    It turns out the solution to this question was quite straight forward (once you know where to look...)
    The trick is creating a view based on one of the Service Request combination classes rather than the basic class itself, and then rephrasing my requirement after realising that what I was really after was a view containing Requests that have an In Progress
    Manual Activity.
    So...open the console, go to Work Items, right click on
    Service Request Fulfillment and select Create View
    On the General tab, give your view a name and select a Management in which it will be stored.
    On the Criteria tab, click Browse to select a specific object class.  Change the
    Frequently used basic classes filter to Combination classes then enter 'Service Request' in the filter field.
    Pick the Service Request and Activity class.
    Now when configuring the criteria, you'll notice a little arrow next to the
    Service Request class. Click on this arrow to expand the node, and select the
    Contains Activity class.
    Under the Available properties box, enter 'Status' in the search field. In my environment, I got two Status fields. Each corresponds to a specific Activity class. Select both of them and click
    Add.
    One of the Criteria will look like 'Contains Activity[Activity]Status'. Keep this one and delete the other from the Criteria box. Change the value to 'Completed'
    While we're at it, select the Service Request class and add a criteria for the Service Request Status = 'In Progress'.
    Click on the Display tab and select whatever fields you want to display in this view.  Click
    OK to save this view.
    Now go to the Administration workspace and select the
    Management Packs node. Export your management pack that contains your view and open the management pack in a text file viewer. Notepad++ works for me...
    First search for the string that you used to name your view. It will be found towards the bottom of the MP in a DisplayString element in the LanguagePacks XML element. This element will have an ElementID.
    Select the ElementID and search the entire file for this string. You want the instance that resides within a Presentation | Views | View element. From this point, scroll down until you get to a Criteria element. Within the Criteria element you will find
    the two Expressions that were entered via the GUI. One of the Expressions corresponds to the Service Request.Status=In Progress criteria, the other corresponds to the Activity.Status=In Progress criteria. We will be changing the Activity criteria so that it
    explicitly refers to a Manual Activity.
    Identify the Expression that has the Property containing the string 'System.WorkItemContainsActivity'. We will be changing the TypeConstraint attribute of this criteria.
    In this line, Replace the string 'System.WorkItem.Activity' with 'System.WorkItem.Activity.ManualActivity'
    Save this file and import the management pack into SCSM

  • Exchange Connector 3.0 RTM - Wrong action log type (user comments are sometimes analyst comments)

    Hi,
    We started using Service Manager a few days ago and I'm noticing some strange behavior from the Exchange connector. Sometimes when a user replies to an e-mail, it get's added as an "Analyst comment", also the private checkbox has a dot in it (not
    blank or checked, but a dot..)
    In this screenshot user "Marwan" is a regular user, replying to us via email...
    Any ideas?

    Today there already is intelligence that checks if the recipient == affected user. I am merely suggesting to rewise and/or extend this logic
    As I wrote, I see two possible ways here. The easy and the hard (optimal) way. The easy way would be to turn it around, meaning all comments = End-User comments unless it's coming from the Assigned User. So the check would be on the Assigned User instead
    of the Affected User as it is today. I understand that some people might complain about this, and might have adapted to the current solution, so it should be optional. In my experience I just see this as more suitable for the customers needs. Well if the source
    code could be released it would make it easier to make custom adjustments, e.g. change the Private boolean value to false etc. ;)
    The hard optimal way would be to add more options for deciding when it's an Analyst and when it's an End-User. Of course the Exchange connector can't figure that out, but if it did comparison to preselected groups or perhaps User Roles (e.g. if recipient
    is Incident Resolver and not affected user => analyst comment). 
    In any case it's an interesting discussion with many aspects, but one thing is for certain: the exchange connector is unfinished. Not broken, just lacking options. Today people are making alot of custom workflows and even their own connectors to accommodate
    for these issues. 

  • How do I add a Voter to a Review Activity on a Service Request from an AD User Query on the Request Offering?

    I have the query set-up and it works fine, but I cannot map it to anything, I suppose because it is an object and not a simple string. I think I get the option to Map it to related items or configuration items in the Query itself maybe, I seem to remember
    seeing that, but I can not map it to anywhere on the Service Request or Activities in the Request Offering Set-Up.
    However, looking at my Update Object Activity in My Runbook, I do not see how to add a person to a review activity anyway.
    Can someone enlighten me?
    I do not know Powershell well enough to use it with SCSM or Orchestrator yet, and I am not even sure if we have SMLets so keep it simple if possible.
    Thanks for any assistance!

    More info:
    How to add a Reviewer to a Review Activity through Orchestrator
    http://www.scsm.se/?p=895
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • SRM 7.0 - Service Request item add Service Provider (empty list)

    Hello,
    Up on creating an Service Request item in a SHC (operational purchaser) an error message is shown: 'Enter at least one source of supply'
    The tab 'Supplier / Service Agents' tell me:
    Here you see all available suppliers for the selected productcategory. ... You can also specify individual Service Agents
    There for i went to SRM Administration -> POWL: Contact persons -> Enable 'service agent' for one of my contact persons.
    And added a prodcat for the bidder via: SRM Administration -> POWL: Bidders -> Tab: 'Bidder Data' -> added a line with a product category
    Now up on creating a new service request it still doesn't show me any possible SOS. Anybody knows how come?
    Kind regards,
    Tim

    Hello Jay,
    I've neither setup those possible SOS: For contract i want to note that i do have a contract available but it's a productcategory contract and it will most probably only look for an contract with the exact same service item included.
    I don't have/use AVL/inforecords/quote.
    For the 5th it seems to me it's pointing to the vendor -> product relationship. There won't be any indeed.
    What i don't get is that the SOS tells me it will look for suppliers for the selected productcategory, hence the service item field is not even a required field!:
    Here you see all available suppliers for the selected productcategory. ... You can also specify individual Service Agents
    That's why i went to the supplier BP administration and added a productcategory responsibility or some sort, on a supplier you can maintain productcategories on the bidder tab. Did you see that? Do you maintain those? Don't you expect those to work with the SOS lookup we're discussing here?
    Kind regards,
    Tim

  • Add multiple products to service request

    Hi,
    Does anyone know how to attach "multiple" products or assets to service request?
    Would it be possible we do programing on siebel API to customize this functionality?
    Thanks for the help.
    Sab.

    How about this approach:
    - keep the assets on the Account;
    - create a custom long text field to store concatenated Asset ids specific to this particular SR;
    - create a custom applet that will display the Assets and allow adding Assets from the list of Asset records associated with the Account.
    or, if you get worried about the capacity of a long text field, use Notes to store the Asset ids instead.
    The drawback, of course, is that the relationship won't be reportable in Analytics.

  • Escalation of Service Requests - Service Request Management - SAP Library

    To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
    You can also go back to the SAP help page.

    Cameron, what are you trying to accomplish? A service request can only have one owner and that owner assignment can be done manually, service request assignment rules, or workflow. If you are looking at visibility to service requests by a group of users then I would recommend using Book of Business.

  • Cannot edit Service Requests or Service Offerings in SM Console

    I have been working on a Service Manager deployment for the past few weeks and yesterday I lost the ability to edit a Service Request or Service Offering when going to the Library, highlighting the object and the clicking Properties.  I am using the
    console on the server itself.  I have no remote consoles in the environment.  I see the properties display for a moment, then disappear.  The navbar on the left is there, but the main window is blank. Both OK and Cancel buttons are
    grayed-out.  I can add a request to an offering or publish a draft by using the options from the Tasks pane.  I can edit properties of other objects.  Before yesterday, I could edit request and offering objects.  I am not
    aware of any changes made to this system other than attempting to install the Exchange Connector v3 and it will not install.  (I've posted a separate question to the Connectors forum.)  There are no corresponding events in the event logs when I attempt
    to open the properties.  This behavior applies to the canned offerings and requests as well as offerings and requests I have created.
    All suggestions welcome.

    A little more information about the property form behavior.  When the property form window first appears, the form content is visible with what looks like a progress bar.  This disappears in less than a second.  All that is visible is
    the left navbar (General, User Prompts, Map Prompts, etc), the OK and Cancel buttons and a lot of whitespace where the form usually appears.  After a variable number of seconds, anywhere from 3 to 10, the OK and Cancel buttons are enabled.  I uninstalled
    Service Manager and reinstalled re-using the Service Manager database.  The property form behavior remains the same.  I hope someone has fixed this before.
    Thanks

  • Record assigned entry different for service requests and incidents

    Hi
    I've noticed something recently when using/implementing service manager that the record assignment formats are different depending on if you are assigning an incident or service request.
    For example when assigning an incident the record assignment shows the display names of the user being assigned (eg the incident is assigned to Joe Bloggs) however for a service request it shows as assigned to domain\jbloggs.
    Is there any reason for the difference between the 2 and can it be standardised as we use the work item action log to send assignment notifications to the affected users and while it's great for incidents it doesn't look good for service requests

    Unfortunately, this is just a text property and this different behaviour is hard-coded into SCSM and cannot be changed. Different people worked on the IR and SR forms and there are many inconsistencies. You could try raising a support case for it I suppose
    but I would not think it likely to be changed.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • Setting service requests - parent - children relationship

     Can parent Child relationships be sert up for service requests-  like incident request parent - child?  or can it only be done with templates in service requests

    I don't think i have seen a post about this, i know it can be done but i can't explain in detail here on how to do it. To sum it up
    1. Orchestrator looks for Service Requests that changed status completed. And perhaps we have extended the class with a new property auto close related items. So the runbook only runs if those criteria are met. 
    2. When the runbook trigger we get all the related SR and close them and add a nice comment like closed by parent SR2222 
    It's not that hard but you have to do some googling on the Orchestrator activities and how to extend the SR class/form with the autoclose. 
    Cheers,
    Thomas Strömberg
    System Center Specialist
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • Not able to create service requests in E-Service

    HI all,
    I am unable to create service requests in the e-service scenario, after i enter all the data and press save button, it says that number is null.
    There is no dump in the crm system.
    I am able to create the same service request in CRM system and also can see these transactions in search list of e-service, but cant view them.
    its giving an error message "An error occurred. The action that you requested could not be performed"
    Regards,
    Karunakar.

    When i tried through DBCA it hanged...
    through oradim it the posted error was appearing
    I have all the privileges as i logged in as domain admin.
    Oradim says it cannot create but the service has been created in services.msc but when i start the service the posted error message was appearing on the Eventlog

  • How do I upload and attach the file to Service Request

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    drangineni
    New Contributor
    Hi,
    I am trying to upload a file and add it to a Service object as an
    attachement. I greatly appreciate if you could provide any code or
    sample...
    Thanks.
    Daya
    Product: CRM OnDemand
    10-21-2006 10:58 AM
    Re: How do I upload and attach the file to Service Request...
    BigSlick
    Valued Contributor
    On Demand doesn't support adding attachments via web services. One
    solution I've seen is depending on the scenario is to create a web link
    field on an object that's based on a custom text field. Your web service
    can populate that custom field and the web link can generate a dynamic
    link to the file in On Demand's UI. However, this depends on where the
    attachment is located and if the user needs some sort of firewall access.
    Hope this helps
    -BigSlick
    10-23-2006 11:43 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Yes this still holds ture.
    Bardo

Maybe you are looking for

  • Commit_work on a form with multiple d.b. blocks

    Before I click on my "save" button, I manually insert some records into my detailed table 'AR_CASH_APPLIED'. Then when the user clicks on "save", I go to each data block and commit_work. Three questions: 1) Do I need to commit_work for each data bloc

  • Alert message in javascript if drop down in 1 column is blank and other column is not blank

    What I'm trying to do is have a java window alert pop up if the PNR column is blank and the BOM column is not blank on each row. I also put a cold fusion If statement around this javascript that the CN_Entry column in the Items table has to be an "N"

  • No signal received in Wave studio from turntable connected to SB External Line

    I have a SB external (USB) with a turntable connected to line in. While the output (including wave studio) works fine into my preamp/amp and speakers, and while I get the turntable signal signal via the external's headphone jack, it does not appear/r

  • GRUB Troubles

    TL;DR I got a disk I can boot when I connect it to one machine but on the other I get to a screen showing "GRUB " and it freezes there. GRUB is configured with a --fs-uuid. Not sure where to go from here. Any suggestions? grub.cfg file: http://sprung

  • Enabling vs not enabling NAT under AEBS settings

    I started noticing lately I haven't been able to connect to my network anytime I am outside of it (starbucks, office, etc) and was wondering if my port forwarding settings could have been changed. I noticed that there is a box checked for NAT under m