< Back

Add-PAddress

Sat Jan 18, 2020 7:25 pm

NAME Add-PAddress



SYNOPSIS

Adds an address to a person or organization.





SYNTAX

Add-PAddress [-PopuliUri] <String> [-PopuliAuthkey] <String> -PersonId <Int32> [-Street <String>] [-City <String>]

[-State <String>] [-Postal <String>] [-Country <String>] [-AddressType <String>] [-Primary <Int32>] [-Public

<Int32>] [<CommonParameters>]



Add-PAddress [-PopuliUri] <String> [-PopuliAuthkey] <String> -OrganizationId <Int32> [-Street <String>] [-City

<String>] [-State <String>] [-Postal <String>] [-Country <String>] [-OrgAddressType <String>] [-Primary <Int32>]

[-Public <Int32>] [<CommonParameters>]





DESCRIPTION

Adds address to a person or organization using the given parameters. Returns an address id that can then be used

with other cmdlets like Update-PAddress | Delete-PAddress. (See output section.)

Review the parameters for specific requirements and settings.





PARAMETERS

-PopuliUri <String>

Set to the correct URL for your college (i.e. https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/).

This parameter is required.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PopuliAuthkey <String>

The authentication key with necessary permissions for the data you are requesting.

The current user must have the Staff role or else be adding this address to his/her own profile.

This parameter is required.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PersonId <Int32>

Numeric ID of the person to whose profile you are attaching this email address.

This Parameter is not required. (but either person_id OR organization_id MUST be set)



Required? true

Position? named

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-OrganizationId <Int32>

Numeric ID of the organization to whose profile you are attaching this email address.

This Parameter is not required. (but either person_id OR organization_id MUST be set)



Required? true

Position? named

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Street <String>

e.g. 777 Magnolia Ln

This parameter is required.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-City <String>

e.g. Moscow

This parameter is required.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-State <String>

e.g. ID



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Postal <String>

e.g. 83843



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Country <String>

e.g. USA



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AddressType <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OrgAddressType <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Primary <Int32>

Use if you want to mark the email address as primary or not primary. e.g. 1 or 0



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Public <Int32>

Use if you want to mark the email address as public or not public. e.g. 1 or 0



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Returns PowerShell object:

<Home|Work|Billing|Main|School|Shipping|Other>AddressId





NOTES





Author: Matthew Rehm

Creation Date: 04/25/2019



-------------------------- EXAMPLE 1 --------------------------



Add-PAddress -PopuliUri 'https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/ -PopuliAuthkey '123456789' -PersonId

'7781234' -PhoneNumber '888-555-1212' -PhoneType SCHOOL













-------------------------- EXAMPLE 2 --------------------------



Add-PAddress -PopuliUri 'https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/ -PopuliAuthkey '123456789'

-OrganizationId '2669162' -PhoneNumber '888-555-1212' -OrgPhoneType WORK















RELATED LINKS