Approval procedure to go request to required FirmPartner

Need a approval procedure query where approval should go to Firmpartner.

There is a common column between person and FirmPartner that is UID_FIrmPartner.

Parents
  • Can you explain your use-case in a little bit more detail? The FirmPartner itself is no Person that would be able to decide a request.

    In addition, what version are you using?

  • we are in 8.1 currently.
    so we have a requirement where team will raise a request for third party account creation from IT shop.

    so request will go to business contact, user will select any of the firm from IT shop.
    Then request will go all the UID_Person's under that UID_FirmPartner.

  • I wrote the below query let me know if there is any changes?

    select distinct
    ISNULL( pe.NES_UID_EscalationPerson, pe.UID_Person) as uid_person , dbo.QER_FGIPWORulerOrigin(hho.XObjectkey) as UID_PWORulerOrigin
    from PersonWantsOrg PWO
    join person po on pwo.uid_personordered = po.uid_Person
    join FirmPartner fp on fp.UID_FirmPartner = po.UID_FirmPartner
    join person pe on pe.uid_Person = po.uid_Person
    join helperHeadperson hho on hho.uid_person = pe.uid_Person
    and hho.XOrigin > 0
    where pwo.uid_personwantsorg = @uid_personwantsorg

Reply
  • I wrote the below query let me know if there is any changes?

    select distinct
    ISNULL( pe.NES_UID_EscalationPerson, pe.UID_Person) as uid_person , dbo.QER_FGIPWORulerOrigin(hho.XObjectkey) as UID_PWORulerOrigin
    from PersonWantsOrg PWO
    join person po on pwo.uid_personordered = po.uid_Person
    join FirmPartner fp on fp.UID_FirmPartner = po.UID_FirmPartner
    join person pe on pe.uid_Person = po.uid_Person
    join helperHeadperson hho on hho.uid_person = pe.uid_Person
    and hho.XOrigin > 0
    where pwo.uid_personwantsorg = @uid_personwantsorg

Children