How to create Exchange dynamic distribution list using multivalue extension custom attribute

I am trying to create a dynamic distribution list using an ExtensionCustomAttribute.  I am in hybrid mode with Exchange 2013.  The syntax I have is this: 
New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {(ExtensionCustomAttribute2 -eq 'NH')} 
This works correctly on-prem.  But hosted always results in an empty list.  I can see in dirsync the attribute is in the hosted environment, but for whatever reason, the distribution group gets created but always come up null.
If I create a group looking at the single valued attributes, such as CustomAttribute6 -eq 'Y', it works correctly on-prem and hosted.  
If anyone has any suggestions I would appreciate it.

I don't think I provided enough information about the problem.  Let me add some and see if it makes sense.
I have an Exchange 2013 on-premise configured in hybrid mode with Office365.  For testing purposes, I have 2 users, Joe and Steve, one with the mailbox on-prem, and the other with the mailbox in the cloud.  Each of them has CustomAttribute6 = 'Y'
and ExtensionCustomAttribute2 = 'NH'. Dirsync shows these users and these attributes are synced between on-prem and cloud.
Using on-prem Exchange powershell, I run the following command:
New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (CustomAttribute6 -eq 'Y')} 
This correctly finds the 2 users when I query for them as follows:
$DDG = Get-DynamicDistributionGroup DG_NH
Get-Recipient -RecipientPreviewFilter $DDG.RecipientFilter | FT alias
So I then delete this DG, and recreate it this time looking at the multi-value attribute ExtensionCustomAttribute2, as follows:
New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (ExtensionCustomAttribute2 -eq 'NH')} 
Replaying the query above, I can see this also works fine and finds my two users.
Next I open a new powershell and connect to Office 365 and repeat the process there.
New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (CustomAttribute6 -eq 'Y')} 
This correctly finds the 2 users when I query for them.
And then delete the group and recreate it using the multi-value attribute:
New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (ExtensionCustomAttribute2 -eq 'NH')} 
When I run the query this time it produces no result.  Every test I try results in an empty group if I am using a multi-valued attribute in the search criteria in the cloud.  If I use single valued attribute, it works fine.
I really need to be able to get multi-valued DDG's working in the cloud.  If anyone has done this and has any suggestions, I would appreciate seeing what you did.  And if this is the wrong forum to port this, if you can point me to a more suitable
forum I will report there.
Thanks,
Richard

Similar Messages

  • How to get administrations of distribution list using api?

    I want get all administrations of a distribution list using api, how to do that?
    anybody knows? Thank you very much!!

    there is a standard function in mdm wd component
    https://help.sap.com/saphelp_nwmdm71/helpdata/en/loio30bf76947bb64c48a2e835fda42c5183_30bf76947bb64c48a2e835fda42c5183/4…
    "Note The Compare to Original button on the Items Detail component opens a Compare component enabling a user to compare a checked out record with an original record (if the user has authorization for the checked out group).
    If the checked out record is a result of a merge action, then the Compare view displays all the original records prior to the merge. When a merge action is executed on a number of checked out records, the merged record is also checked out."

  • How to create a dynamic entry list for an input field in VC(ce 7.1)

    Hello all,
    I have an Input field, i need to create a Dynamic Entry List for it in VC(ce 7.1).
    How can this be done.
    Thanks in Advance.
    Thanks and Regards,
    Santhosh Guptha N

    Hi Santhosh,
    You can define Dynamic entry list for Drop down list and combo box but not for input field.
    [Refer this|http://help.sap.com/saphelp_nwce10/helpdata/en/2a/28249060dd4dbc872f6266f4557364/frameset.htm] for defining entry list.
    Let me know if it helped.
    Regards,
    Dharmi

  • Unable to create working dynamic distribution list based on manager

    Hi,
    I am struggling to create a working dynamic distribution group. I am following the instructions at http://help.outlook.com/en-gb/140/Dd264647.aspx.
    My intent is to create DDG's based on a user's manager and their job title. In my org, sales managers will typically have 3 teams reporting to them. In our AD, this would be marked by a 3-4 letter acronym in the job title field (CSO,DCO,SDCO).
    I am trying to create distribution groups for use by their manager by having the manager and job title item as the filter, using the following script:
    New-DynamicDistributionGroup -Name "GROUPNAME" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (manager -eq 'Managername') -and (title -eq 'ACRONYM')}
    As an aside, I am unable to find if the manager object should be an alias, upn or ad object. I've tried with all with no success.
    No matter what permutations of the above script I try, nothing seems to work. The group creates, but does not work at all.
    Any help you can provide would be very much appreciated!

    Hi Ed,
    I did try that, and as it turned out, I was using the wrong powershell from the start.
    The commands above are for Office 365, not on-prem Exchange 2013. Having spoken to Microsoft, it seems like the AD object for manager may not be a filterable option at all, I'm waiting to hear back.
    If this can help jog anyone's mind, the commands we're looking towards now look something like this:
    New-DynamicDistributionGroup -Name "testname" -Alias "testname" -IncludedRecipients "MailboxUsers,MailContacts" -OrganizationalUnit "domain.local/users" -ConditionalDepartment "Test" -RecipientContainer "domain.local"
    We're still looking for a filter for manager in there, and I'll update the thread if I get anything worthy of note. Bear in mind that it's going to be difficult to settle for anything less than the manager object to filter by, as our requirements pretty
    much demand it.
    Thanks all.

  • How to create an anonymous Distribution List ?

    Hi,
    I have a growing distribution address list created in the Address Book. When I send that address list from Mail, all the names appear individually and everybody can see everybody's else email.
    How to make it look like it comes just from me, or my distribution list name, and not make appear all the other emails?
    Thanks,
    JP.

    Hi,
    Simple enough and seems to work
    Thanks!
    JP.

  • How to create an email distribution list?

    How do you create an email distribution list

    This is what I do and it works!
    1.  Create a new contact in iCloud (iCloud.com) or from your iPhone or iPad.
    2.  The company name field is your distribution name.
    3.   In one email field type in or paste in all the email addresses you want in the format as listed below. That's open double quotes follow by person's name close double quotes. Open greater than sign e-mail close greater then sign.  Each additional entry follow by a comma.  Last entry you don't need to.
             "first lastName"<[email protected]>,
    I would suggest do this in Note (on the iPad) or somewhere you can see your entres. Then paste them to the email field.
    Good luck!  Hope this helps.
    Tuan
    Long Beach CA

  • How to send spool to Distribution List using JOB_CLOSE

    Please help on sending Distribution list when job defined using JOB_OPEN, JOB_Submit and JOB_CLOSE
    Thanks.

    Hi, this is code:
    DATA  WA_RECIPIENT LIKE swotobjid.
    CONSTANTS:  gc_objname  TYPE oj_name    VALUE 'RECIPIENT'.
    PERFORM get_distribucion_list USING    'NAME_LIST'   " name of List of distribution
                                  CHANGING WA_RECIPIENT.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
          jobcount                          = l_jobcount
          jobname                           = l_jobname
          strtimmed                         = 'X'
        recipient_obj                     = wa_recipient
    IMPORTING
       job_was_released                  = l_libero
    EXCEPTIONS
       cant_start_immediate              = 1
       invalid_startdate                 = 2
       jobname_missing                   = 3
       job_close_failed                  = 4
       job_nosteps                       = 5
       job_notex                         = 6
       lock_failed                       = 7
       OTHERS                            = 8.
    FORM get_distribucion_list USING    p_objnam       TYPE so_obj_nam
                               CHANGING p_wa_recipient LIKE swotobjid.
      DATA: it_tab LIKE STANDARD TABLE OF soxdl
                   INITIAL SIZE 0 WITH HEADER LINE.
      CHECK NOT p_objnam IS INITIAL.
      CALL FUNCTION 'SO_DLI_LIST_READ_XDL'
        EXPORTING
          dli_generic_name            = p_objnam
          public                      = 'X'
          subscript                   = 'X'
        TABLES
          dli_display_tab             = it_tab
        EXCEPTIONS
          communication_failure       = 1
          dl_list_no_entries          = 2
          owner_not_exist             = 3
          system_failure              = 4
          x_error                     = 5
          parameter_error             = 6
          OTHERS                      = 7
      IF sy-subrc = 0.
        READ TABLE it_tab INDEX 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
            IMPORTING
              own_logical_system             = p_wa_recipient-logsys
            EXCEPTIONS
              own_logical_system_not_defined = 1
              OTHERS                         = 2.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          MOVE gc_objname TO p_wa_recipient-objtype.
          CONCATENATE it_tab-dlitp it_tab-dliyr it_tab-dlino
                      INTO p_wa_recipient-objkey.
        ENDIF.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.

  • How to create a dynamically growing list in SAPUI5?

    Hi,
    I want to create a growing list in SAPUI5 like this http://help.sap-ag.de/saphelp_uiaddon10/helpdata/en/91/64ba7047b74a25a19baf9c5bb986ae/content.htm
    However, I want to hit a url to fetch data every time[10 rows on every load]. My JSON data contains more than 200 rows and I do not want to load everything when the app starts. Can you help me with your code for achieving this?
    Thanks
    Senthil Kumar

    Hi,
    Like I said, if it's an OData service call, then data is loaded from the server, and the amount of retrieved data specified by the threshold.
    if it is a simple REST / JSON service, then all data is loaded during the initial service call, but the list only shows (and grows) by what's specified at the threshold parameter.
    In other words, the real benefit of the growing list is when using OData services

  • Newbie: how to create a dynamic select list of the current date + 5 years

    Hi - I'm a JSP newbie (coming from a PHP background), and am trying to create a select list that contains the current year, plus 5 years. So, the list when generated (today), would display:
    2007
    2008
    2009
    2010
    2011
    2012
    Obviously, the code would need to generate inside the option tags, as well as in the value property of the option tag.

    function addit(){
              var val = 2012; //you can take this from js date object and strip it off
              for (var i=2007; i <= val;++i){
                   addOption(document.getElementById("mycombo"), i, i);
    function addOption(selectbox,text,value)
         var optn = document.createElement("OPTION");
         optn.text = text;
         optn.value = value;
         selectbox.options.add(optn);
    }without hardcoding:
    function addit(){
              var dd = new Date();
              var yearnow = dd.getFullYear();
              for (var i=yearnow; i <= yearnow + 5 ;++i){
                   addOption(document.getElementById("mycombo"), i, i);
    function addOption(selectbox,text,value)
         var optn = document.createElement("OPTION");
         optn.text = text;
         optn.value = value;
         selectbox.options.add(optn);
    in your jsp:
    <body onload="addit();">
    <form>
    <select name="mycombo">
    <option> Select year</option>
    </select>
    </form>
    </body>
    Message was edited by:
    skp71
    Message was edited by:
    skp71

  • HT204150 Distribution list using Contacts

    How do I make a distribution list using Contacts?

    Click the the groups button in contacts
    Add and name a new group
    Drag contacts into the group
    Create an email and use the name of the group in the address field.

  • How to create a dynamic mapping of columnar at the Runtime using ADF or JSF

    How to create a dynamic GUI at the Runtime using ADF or JSF in JDeveloper 11g.
    What I am trying to build is to allow the user to map one column to another at the run time.
    Say the column A has rows 1 to 10, and column B has rows 1 to 15.
    1. Allow the user to map rows of the two tables
    2. An dhte rows of the two columns are dynamically generated at the run time.
    Any help wil be appreciated.....
    Thnaks

    Oracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
    I can guess that it is not
    exactly possible since I looked at the forums and documantation etc. but
    couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
    t". But this is a very common need and I thought that there must be at least a workaround?
    How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
    I will be able to satisfy the need in a functional way if I could make the
    select lists in the tabular form dynamic with the noz_id;
    SELECT vozellik "Özellik",
    htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
    a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
    htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    But what I exactly need i something like this dynamic query;
    SELECT
    vozellik "Özellik",
    CASE
    WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
    'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
    WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
    'HTMLDB_ITEM.select_list_from_query(' || rownum ||
    ', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
    t1.noz_id || ''' ) ' || vozellik
    END AS "Değer"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    Thank you very much,
    Best regards.
    H.Tonguc

  • Create Dynamic Distribution Groups Using Customized Filters

    I am looking to create a new Dynamic Distribution List. 
    Example: 
    DL - United States Users ([email protected]
    In AD we have the 'Office' field filled accordingly, which contains the attribute USCA___ or USIL (US,California,etc or US, Illinois,etc). 
    I was wanting to try creating these using this command/script; 
    New-DynamicDistributionGroup -Name "DL - United States Users" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Office -eq 'USCA*')(Office -eq 'USIL*')}
    Assistance here please: 
    1. What needs to be added in that line so that only certain users can email to it, rejecting all others (i.e. The Helpdesk or Corporate Communications)
    2. Is there a way to specify the SMTP address you want it to use? 
    3. Is there a way to have it only add mailboxes that are enabled in AD so disabled mailbox user accounts wont be added? 
    Thanks in advance everyone. 

    Hi,
    We can use the following command to create a Dynamic distribution group:
    New-DynamicDistributionGroup -Name "DL - United States Users" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Office -like
    'US, California' -or (Office -like 'US, Illinois')) -and (UserAccountControl -ne 'AccountDisabled, NormalAccount')}
    Then as what ED says, we can use the Set-DynamicDistributionGroup cmdlet with AcceptMessagesOnlyFrom or
    AcceptMessagesOnlyFromDLMembers parameter to specify certain users who can send email messages to this dynamic distribution group. And use PrimarySMTPAddress parameter to specify the primary return SMTP email address for the distribution group.
    Hope it helps.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • How do I send e-mail to a distribution list using LabWindows/CVI?

    I need to be able to send e-mail to a user-defined distribution list using LabWindows/CVI? Has anyone done this? Any ideas where I could look?

    I commented on something similar to this awhile back.  My issue was that I had the base version and didn't have the Internet classes.  So this external app worked like a charm
    It has a lot of command-line inputer options to use as well.
    http://forums.ni.com/t5/LabWindows-CVI/Need-Help-for-Sending-Email-with-LabWindows-8-5-or-9/m-p/1095...

  • MailTips for Dynamic Distribution Lists - wrong number of recipients

    We use Exchange 2013 and Outlook 2013. We have a Dynamic Distribution List ([email protected]) configured on Exchange. It contains 75 users, I confirmed it using below cmdlets in Exchange management shell
    $all = Get-DynamicDistributionGroup [email protected]
    Get-Recipient -RecipientPreviewFilter $all.recipientfilter
    When I use Outlook to create a new email to [email protected] there is a MailTip displayed mention about 87 of recipients, it should be 75 users. 
    Settings on our Exchange servers are as below:
    [PS] C:\Windows\system32>Get-OrganizationConfig | fl *mailtip*
    MailTipsAllTipsEnabled                : True
    MailTipsExternalRecipientsTipsEnabled : False
    MailTipsGroupMetricsEnabled           : True
    MailTipsLargeAudienceThreshold        : 25
    MailTipsMailboxSourcedTipsEnabled     : True
    Any idea how to troubleshoot it?

    In Active Directory attributes for this group are as below
    msExchGroupMemberCount =
    87msExchGroupExternalMemberCount
    = 0 
    Regarding
    files under %ExchangeInstallPath%GroupMetrics there is only cookie file modified yesterday and
    it contains as below:
    DC=domain,DC=com;12/28/2014 13:11:15;05/14/2013 20:02:24
    Just created new dynamic distribution group with the same filter as for group all (for test purpose). There is no MailTip for this new group now. Is it possible to force \ speed up group metrics generation?

  • Address List and RecipientFilter for dynamic distribution lists

    Hi guys
    I am trying to setup a Address List in exchange that contains dynamic distribution lists specified by the list name. So address List abc should contain dynamic distribution lists with list names "def" and "ghi" and "jkl"
    So far I have come up with below which displays all dynamic distribution lists. this works but how can I now filter further to specific lists?
    New-AddressList -Name abc -RecipientFilter {((Alias -ne $null) -and (ObjectClass -eq 'msexchdynamicdistributionlist'))}
    Example of what I am trying to acheive:
    New-AddressList -Name abc -RecipientFilter {((Alias -ne $null) -and ((ObjectClass -eq 'msexchdynamicdistributionlist') -and ('msexchdynamicdistributionlist' -eq 'def') -or ('msexchdynamicdistributionlist' -eq 'ghi') -or ('msexchdynamicdistributionlist' -eq
    'jkl'))}

    Hi,
    I have some tests in my environment using Exchange 2013. You can use the following cmdlet to create an address list that contains specified distribution group members.
    New-AddressList -Name test3 -RecipientFilter {((Alias -ne $null) -and (MemberOfGroup -eq 'CN=Sales,CN=Users,DC=contoso,DC=com'))}
    Note that it can't work for dynamic distribution group. In your case, I haven't found a parameter for dynamic distribution group in Exchange, your understanding will be appreciated.
    Hope my clarification can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

Maybe you are looking for

  • Lion iCal Can't Open Other Calendars, Outlook Can

    Hey folks - I'm connecting Mail.app, iCal, and Address Book to the corporate Exchange server here at work.  The one bit I can't seem to get to work with any regularity is access other calendars (delegates) in iCal.  I know my NT account can see those

  • Gateway Notebook PC stopped connecting to Airport Express

    My older Gateway Notebook PC worked fine with the Airport Express until some time in March, 2008. Now, although it goes through the process of trying to connect, it fails to make the connection. The Apple products are working fine. I see in the forum

  • Problem in getting Jobid

    I am calling a report from a form in oracle AS 10g. But when I am trying to get the jobid before passing it to web.show_document() it is hanging... Can anyone help

  • How to store an index in a specific table space?

    Hello everyone.. I am using Oracle 10.2.0. Is it possible to store an index in a table space, in the same create index syntax? I have tried the following syntax: create index index_name on table_name (column_name) tablespace index_tablespace;and I am

  • Using muliple delimiters when importing files.

    I have some sql*loader control files that I created manually, but I would like to set those up in OWB so that I can keep the entire ETL process in one tool. My files are Tab delimited, but the last field has trailing spaces so in my Control file I ha