Join Fribiz, place bids and win prizes | Next Tip »Home

Closing Service Request – Scriptless Siebel

OkAvarageGoodVery GoodExcellent (7 votes, average: 4.43 out of 5)
Loading ... Loading ...

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: , Read 417 articles by neel
  • Deepak

    Hi just sharing another thought on the same…
    Neel , can you please validate if this method correct for the requirement.

    1) Create link between SRequest and Activities.
    In Link search spec : giv condition to check status != ‘Closed’

    2) Use Count(MVL) , IF Count(MVL)=0 , then update SR as ‘Closed’

  • Deepak

    Hi just sharing another thought on the same…
    Neel , can you please validate if this method correct for the requirement.

    1) Create link between SRequest and Activities.
    In Link search spec : giv condition to check status != ‘Closed’

    2) Use Count(MVL) , IF Count(MVL)=0 , then update SR as ‘Closed’

  • http://siebelunleashed.com/ neel

    There are quite a few things that I would like to say about this approach.

    There is already a link that exsists between SR and Activity that is why they are parent and child. You cannot give search spec in that link coz it not display all the activities which is not correct.

    You need to create an MVL based on alerady existing link and try to use Type Field and Type value in MVL to restrict record.

    then you can use Count(MVL) to get count but then again how will you update SR status… On Field Update user property will not work here as it works only when you manually update a field .. calculated field doesn’t work.

    I hope now you understand the glitches in approach that you saying… Workflow approach is lot cleaner and also flexible.

    For example in future if they say that SR should only be closed if it has solution record associated to it and also child SR if any should be closed then only you can close SR.

    We can extend workflow to include all these things but MVL will not work here

  • http://siebelunleashed.com neel

    There are quite a few things that I would like to say about this approach.

    There is already a link that exsists between SR and Activity that is why they are parent and child. You cannot give search spec in that link coz it not display all the activities which is not correct.

    You need to create an MVL based on alerady existing link and try to use Type Field and Type value in MVL to restrict record.

    then you can use Count(MVL) to get count but then again how will you update SR status… On Field Update user property will not work here as it works only when you manually update a field .. calculated field doesn’t work.

    I hope now you understand the glitches in approach that you saying… Workflow approach is lot cleaner and also flexible.

    For example in future if they say that SR should only be closed if it has solution record associated to it and also child SR if any should be closed then only you can close SR.

    We can extend workflow to include all these things but MVL will not work here

  • VerteX

    What would I do in that case:

    1. Create 2 user properties in Activity:
    Name: On Field Update Invoke 1
    Value: “Status”, “Activity”, “WriteRecord”

    Name: On Field Update Invoke 2
    Value: “Status”, “Service Request”, “UpdateStatus”, “[Status] = ‘Closed’”

    2. Create an user property in Service Request
    Name: Named Method 1
    Value: “UpdateStatus”, “SET”, “Status”, “IIF (NOT BCHasRows (‘Action’, ‘Action’, ‘[Activity SR Id] = ” + [Id] + ” AND [Status] ‘Closed’, ‘All’), ‘Closed’, [Status])”

    I assume you would you have to put quotes around Id value in “…[Activity SR Id] = ” + [Id] + ” AND…” but I don’t remember the syntax here, double quotes or smthng

  • VerteX

    What would I do in that case:

    1. Create 2 user properties in Activity:
    Name: On Field Update Invoke 1
    Value: “Status”, “Activity”, “WriteRecord”

    Name: On Field Update Invoke 2
    Value: “Status”, “Service Request”, “UpdateStatus”, “[Status] = ‘Closed’”

    2. Create an user property in Service Request
    Name: Named Method 1
    Value: “UpdateStatus”, “SET”, “Status”, “IIF (NOT BCHasRows (‘Action’, ‘Action’, ‘[Activity SR Id] = ” + [Id] + ” AND [Status] ‘Closed’, ‘All’), ‘Closed’, [Status])”

    I assume you would you have to put quotes around Id value in “…[Activity SR Id] = ” + [Id] + ” AND…” but I don’t remember the syntax here, double quotes or smthng

  • Deepak

    Yeah i realize the practical infeasibilty..
    Thanks for your detail insights on that.

    just one more question athough related to post on scriptless part 2

    i just read on comments we can call DVM through WF using
    BS : Data Validation Manager and method : validate.

    But where do we mention the particular Rule set Name and how do
    we capture back the error message to WF

    -deepak

  • Deepak

    Yeah i realize the practical infeasibilty..
    Thanks for your detail insights on that.

    just one more question athough related to post on scriptless part 2

    i just read on comments we can call DVM through WF using
    BS : Data Validation Manager and method : validate.

    But where do we mention the particular Rule set Name and how do
    we capture back the error message to WF

    -deepak

  • Reshmi

    Hi All,

    Pls try this option.

    1. Create a MVL between SR & Activity
    2. Create a MVF based on above MVL on Status field
    3. Create a calculated field in SR BC as IIf(Exists([Action Status]) “Closed”, “Open”, Closed”)
    5. Create a user property as On Field Update in SR BC with Status field based on above calculated field

  • Reshmi

    Hi All,

    Pls try this option.

    1. Create a MVL between SR & Activity
    2. Create a MVF based on above MVL on Status field
    3. Create a calculated field in SR BC as IIf(Exists([Action Status]) “Closed”, “Open”, Closed”)
    5. Create a user property as On Field Update in SR BC with Status field based on above calculated field

  • Ersin ERSOY

    Hi,

    Thanks for this post.

    I want to ask you that why you did not used Siebel Operation to query BC instead of PRM ANI Utility Service’s QueryBusComp method ?

    Regards.

  • Ersin ERSOY

    Hi,

    Thanks for this post.

    I want to ask you that why you did not used Siebel Operation to query BC instead of PRM ANI Utility Service’s QueryBusComp method ?

    Regards.

  • http://siebelunleashed.com/ neel

    I guess you didn’t read the previous post in series.

    I implemented this in Siebel 7.8 and in this version Siebel Query operation doesn’t return count of records. I needed count to achieve this that is PRM ANI Utility Service

  • http://siebelunleashed.com neel

    I guess you didn’t read the previous post in series.

    I implemented this in Siebel 7.8 and in this version Siebel Query operation doesn’t return count of records. I needed count to achieve this that is PRM ANI Utility Service

  • Bhagya

    Can you please explain the detailed difference between ContinueOperation and ContinueOperation in Scrpting.

  • Bhagya

    Can you please explain the detailed difference between ContinueOperation and ContinueOperation in Scrpting.

  • Rakesh

    In 7.7 and above for counting records one can use the following code:
    with (bc)
    {
    ClearToQuery();
    ActivateField(“Name”);
    SetSearchSpec (“Name”, “A*”);
    ExecuteQuery ();
    var count = CountRecords();
    }

blog comments powered by Disqus